Forum Discussion
Renaming of O365 groups
hi, along with set-unifiedGroup -Identity <GroupName> -PrimarySMTPAddress <new email address>, you need to use set-unifiedGroup -Identity <GroupName> -EmailAddress SMTP:<newemailaddress> as this will remove the old email address from Office365 Group identity so you can reuse it.
Hi,
I used the command syntax
set-unifiedGroup -Identity <GroupName> -EmailAddress SMTP:<newemailaddress>
This is what my Attribute "EmailAddresses" looked before (slightly changed content):
EmailAddresses : {SPO:SPO_0affa9c4-1111-2222-3333-162e4873a42e@SPO_89617050-2222-1111-3333-cb7206607595,
smtp:TestingMSTeams@mydomain.onmicrosoft.com, SMTP:TestingMSTeams@domain.me}
After running the command without failures, the attribute contents look same but the SPO: part is missing. Is this critical or can I proceed on using my Group without any problems now?
After running the command:
EmailAddresses : {smtp:TestingMSTeams@mydomain.onmicrosoft.com, smtp:TestingMSTeams@domain.me,
SMTP:TestingMSTeams2@pia.me}
Appreciate your feedback
- ITSourceProJan 25, 2019Brass Contributor
You would start with this command as noted above:
Set-UnifiedGroup -Identity <GroupName> -PrimarySMTPAddress <NewEmailAddress>
Then the correct command to remove the old address to free it up:
Set-UnifiedGroup -Identity <GroupName> -EmailAddresses @{remove=”<NewEmailAddress>”}
You can also rename the Alias:
Set-UnifiedGroup -Identity <GroupName> -Alias <NewAlias>
I'd imagine you could add your SPO record back with:
Set-UnifiedGroup -Identity <GroupName> -EmailAddresses @{add=”<SPO:SPO_*>”}
The SPO record has to do with SharePoint Online.