Update group

Namespace: microsoft.graph

Update the properties of a group object.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

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

HTTP request

PATCH /groups/{id}

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance you shouldn't include existing values that haven't changed.

Property Type Description
allowExternalSenders Boolean Default is false. Indicates if people external to the organization can send messages to the group.
autoSubscribeNewMembers Boolean Default is false. Indicates if new members added to the group will be auto-subscribed to receive email notifications.
description String An optional description for the group.
displayName String The display name for the group. This property is required when a group is created and it cannot be cleared during updates.
groupTypes String collection Specifies the group type and its membership.

If the collection contains Unified then the group is a Microsoft 365 group; otherwise it's a security group.

If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static.
mailEnabled Boolean Specifies whether the group is mail-enabled.
mailNickname String The mail alias for the group. This property must be specified when a group is created.
securityEnabled Boolean Specifies whether the group is a security group.
visibility String Specifies the visibility of a Microsoft 365 group. The possible values are: Private, Public, or empty (which is interpreted as Public).


  • You can update autoSubscribeNewMembers by specifying it in its own PATCH request,without including the other properties in the table above.
  • Only a subset of the group API pertaining to core group administration and management support application and delegated permissions. All other members of the group API, including updating autoSubscribeNewMembers, support only delegated permissions. See known issues for examples.
  • The rules for updating mail-enabled security groups in Microsoft Exchange Server can be complex; to learn more, see Manage mail-enabled security groups in Exchange Server.


If successful, this method returns a 204 No Content response code.


The following example shows how to create a group.


The following is an example of the request.

PATCH https://graph.microsoft.com/v1.0/groups/{id}
Content-type: application/json
Content-length: 211

  "description": "description-value",
  "displayName": "displayName-value",
  "groupTypes": [
  "mail": "mail-value",
  "mailEnabled": true,
  "mailNickname": "mailNickname-value"


The following is an example of the response.

HTTP/1.1 204 No Content