Update a directory setting

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Update the properties of a specific directory setting object.

Note: The /beta version of this API only applies to groups. The /v1.0 version of this API has been renamed to Update groupSettings.


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) Directory.ReadWrite.All, Directory.AccessAsUser.All
Delegated (personal Microsoft account) Not supported.
Application Directory.ReadWrite.All

HTTP request

Update a tenant-wide or group specific setting.

PATCH /settings/{id}
PATCH /groups/{id}/settings/{id}

Optional request headers

Name Description
Authorization Bearer {token}. Required.

Request body

In the request body, supply the values for relevant fields that should be updated.

Property Type Description
values settingValue collection The updated set of values. NOTE: You must supply the entire collection set. You cannot update a single set of values.


If successful, this method returns a 204 OK response code.



Here is an example of the request.

PATCH https://graph.microsoft.com/beta/settings/{id}
Content-type: application/json

  "values": [
      "name": "name-value",
      "value": "value-value"
HTTP/1.1 204 OK