User

POST /{tenantID}/users/{objectId}/getMemberGroups

Gets a collection that contains the object IDs of the groups of which the user is a member.

Request

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

Path parameters

objectIdstring required

The object ID of the user for which to get group membership.

tenantIDstring required

The tenant ID.

Query parameters

api-versionstring required

Client API version.

Request body

securityEnabledOnlyboolean required

If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked.

Response

OK. The operation was successful.

valuestring[]

A collection of group IDs of which the user is a member.

Changes

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