Group

POST /{tenantID}/isMemberOf

Checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group.

Request

  • Base URL
    https://graph.windows.net
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

tenantIDstring required

The tenant ID.

Query parameters

api-versionstring required

Client API version.

Request body

groupIdstring required

The object ID of the group to check.

memberIdstring required

The object ID of the contact, group, user, or service principal to check for membership in the specified group.

Response

OK. Indicates success. Returns true if the user, contact, group, or service principal is a direct or a transitive member of the specified group; otherwise, false.

valueboolean

True if the specified user, group, contact, or service principal has either direct or transitive membership in the specified group; otherwise, false.

Changes

No recorded changes to this operation across all 17 revisions of this API.