Home > Enterprise >  M365 group email change via Graph API
M365 group email change via Graph API

Time:08-26


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"
        }
    }
}

CodePudding user response:

I have repro the issue the API is working fine and I am able to update the alias [Nickname] enter image description here

can you please try this in Graph explorer and see if it works.

CodePudding user response:

This might be due to insufficient permissions. Make sure you are allowing the permission according to your account type from enter image description here

To make sure this is working try fetching the details of your group which gives the response with updated attributes.

GET https://graph.microsoft.com/v1.0/groups/<GroupId>

REFERENCES: Get group - MSFT Docs

  • Related