skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. This might be due to insufficient permissions. Make sure you are allowing the permission according to your account type from Update group – MSFT Docs.

    Permission type Permissions (from least to most privileged)
    Delegated (work or school account) Group.ReadWrite.All, Directory.ReadWrite.All
    Delegated (personal Microsoft account) Not supported.
    Application Group.ReadWrite.All, Directory.ReadWrite.All

    Now try making the required changes to your attributes (i.e., mailNickname in your case).

    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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search