Forum Discussion
Renaming of O365 groups
Santhosh,
We have a group that was created and have decided to change it to a shared mailbox or back to a DL. We need to be able to re-use the SMTP address associated with the Group. What are your recommendations?
Is set-unifiedGroup -PrimarySMTPAddress suffice?
- SanthoshB1Oct 31, 2016Bronze Contributor
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.
- Patrick FaustAug 12, 2018Copper Contributor
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, 2019Iron 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.
- Adam FowlerJun 19, 2017Iron ContributorThis worked for the first group I tried, but the second and third came back with "We failed to update the unified group. Please try again later"
Any ideas? - MichelleProperDec 29, 2016Brass Contributor
Is it possible to use a distribution list as the primary SMTP? I can change the email in PowerShell to a new email but it will not let me change it to the address associated with a DL.