I am trying to change M365 Group email alias [Nickname] with use of Graph API.
Below HTTP call returns 204 [as expected]. Group email stays the same 😕 I have waited several hours.
I am able to change other group properties [description, display name etc.] with this call
{
"inputs": {
"method": "PATCH",
"uri": "https://graph.microsoft.com/v1.0/groups/GROUPID",
"headers": {
"Content-type": "application/json"
},
"body": {
"mailNickname": "_Display12345"
},
"authentication": {
"audience": "https://graph.microsoft.com",
"clientId": "",
"secret": "",
"tenant": "",
"type": "ActiveDirectoryOAuth"
}
}
}
2
Answers
I have repro the issue the API is working fine and I am able to update the alias [Nickname]
can you please try this in Graph explorer and see if it works.
This might be due to insufficient permissions. Make sure you are allowing the permission according to your account type from Update group – MSFT Docs.
Now try making the required changes to your attributes (i.e., mailNickname in your case).
To make sure this is working try fetching the details of your group which gives the response with updated attributes.
REFERENCES: Get group – MSFT Docs