|
1 | 1 | --- |
2 | 2 | title: "Manage a group in the admin center" |
3 | | -ms.reviewer: rahulnayak |
4 | | -ms.date: 06/17/2024 |
| 3 | +ms.reviewer: batre |
| 4 | +ms.date: 05/23/2025 |
5 | 5 | f1.keywords: NOCSH |
6 | 6 | author: DaniEASmith |
7 | 7 | ms.author: danismith |
@@ -42,6 +42,22 @@ Go to the Microsoft 365 admin center at <a href="https://go.microsoft.com/fwlink |
42 | 42 |
|
43 | 43 | 3. Update the name and description, and then select **Save**. |
44 | 44 |
|
| 45 | +## Change the email address or email domain of the group |
| 46 | + |
| 47 | +You can change the email address of a Microsoft 365 group or Microsoft Teams by using the Microsoft 365 admin center. Just select the group and select @edit email address. |
| 48 | + |
| 49 | +You can also use the following EXO PowerShell command to change the primary SMTP address of a Microsoft 365 group/Teams: |
| 50 | + |
| 51 | +```powershell |
| 52 | +Set-UnifiedGroup <Group Name> -PrimarySmtpAddress <new SMTP Address> |
| 53 | +``` |
| 54 | + |
| 55 | +Example: |
| 56 | + |
| 57 | +```powershell |
| 58 | +Set-UnifiedGroup Marketing -PrimarySmtpAddress [email protected] |
| 59 | +``` |
| 60 | + |
45 | 61 | ## Manage group owners and members |
46 | 62 |
|
47 | 63 | 1. In the admin center, expand **Teams & groups**, and then click <a href="https://go.microsoft.com/fwlink/p/?linkid=2052855" target="_blank">**Active teams & groups**</a>. |
@@ -88,20 +104,25 @@ This option is great if you want to have a company email address such as info@co |
88 | 104 | ## Permanently delete a Microsoft 365 group |
89 | 105 |
|
90 | 106 | Sometimes you may want to permanently purge a group without waiting for the 30 day soft-deletion period to expire. To do that, start PowerShell and run this command to get the object ID of the group: |
91 | | - |
92 | | - ```powershell |
93 | | -Get-MgDirectoryDeletedItem |
| 107 | + |
| 108 | +First, install Microsoft Graph PowerShell. |
| 109 | + |
| 110 | +Then run the following command: |
| 111 | + |
| 112 | +```powershell |
| 113 | +Connect-MgGraph -Scopes "Group.ReadWrite.All" |
94 | 114 | ``` |
95 | 115 |
|
96 | | -Take note of the object ID of the group, or groups, that you want to permanently delete. |
97 | | - |
98 | | -> [!CAUTION] |
99 | | -> Purging the group removes the group and its data forever. |
100 | | - |
101 | | -To purge the group run this command in PowerShell: |
| 116 | +Then use this command to list deleted groups: |
| 117 | + |
| 118 | +```powershell |
| 119 | +Get-MgDirectoryDeletedGroup |
| 120 | +``` |
| 121 | + |
| 122 | +Note down the ID of group you are looking to permenantly delete and then run the following command: |
102 | 123 |
|
103 | 124 | ```powershell |
104 | | -Remove-MgDirectoryObject -DirectoryObjectId <objectId> |
| 125 | +Remove-MgDirectoryDeletedItem -DirectoryObjectId <ID of the group to be permenantly deleted> |
105 | 126 | ``` |
106 | 127 |
|
107 | 128 | To confirm that the group has been successfully purged, run the *Get-MgDirectoryDeletedItem* cmdlet again to confirm that the group no longer appears on the list of soft-deleted groups. In some cases it may take as long as 24 hours for the group and all of its data to be permanently deleted. |
|
0 commit comments