device: checkMemberObjects

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.

Check for membership in a list of groups or administrative units for the specified device object. This method is transitive.


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

HTTP request

POST /devices/{id}/checkMemberObjects

Request headers

Name Description
Authorization Bearer {token}
Content-Type application/json

Request body

In the request body, provide a JSON object with the following parameters.

Parameter Type Description
ids String collection A collection that contains the object IDs of the groups, directory roles, administrative units, or roleTemplate IDs of directory roles, in which to check membership. Up to 20 objects may be specified.


If successful, this method returns a 200 OK response code and a String collection object in the response body.


The following example shows how to call this API.


The following is an example of the request.

Content-type: application/json

  "ids": [


The following is an example of the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-type: application/json

  "value": [