Hi all,
I am in need of updating the primary email address
of a MS 365 group. According to the Graph API docs, in order to do this, you need to send a PATCH
request to the following endpoint /v1.0/groups/{groupId}
with the following request body:
{
mailNickname: "newMailNickname"
}
After doing so, I am getting a 204 - No Content Response
, which according to the documentation (https://learn.microsoft.com/en-us/graph/api/group-update), indicates a successful operation.
However, the update is not reflecting on the Admin Console. Whenever I navigate to the updated group, the primary email address property still points to the mailNickname assigned during creation. I also waited 24 hours, in case this update occurs asynchronously, but nothing changed after that window. Changing this email address through the console works fine. API updates to any other group properties (e.g displayName
) also work fine.
P.S. I'm trying to update a group that got created as a result of creating a team
by calling POST /v1.0/teams
. According to the docs, the team and the underlying group share the same id.
Any help would be appreciated.