0
votes

I have multiple domains in Office 365, and enabled custom domain as the default domain and the default accepted domain in Office 365, when I posted a create group request with Graph API, and I got the group response with [email protected] email, but after a few seconds, I tried to get the group with group id again, the group email was changed to custom domain. So I want to know why this happened? and how to prevent this issue?

I tried to create the Office 365 group in Office 365 portal and exchange admin center, and it works well.

Any suggestion will be appreciated, thank you.

Long

1

1 Answers

1
votes

Is the response in the group referring to a ProxyAddress with the secondary SMTP using the .onmicrosoft.com? That's normal to where if you update the default domain name, you may still see the .onmicrosoft.com can be used to route the mail in case the custom domain is removed to prevent losing access to mail.

If you don't want the secondary SMTP to be using the .onmicrosoft.com, you will have to manually update it.

You can refer to this: https://docs.microsoft.com/en-us/office365/admin/create-groups/choose-domain-to-create-groups?view=o365-worldwide

Hope that helps. -Eliza