---
title: "POST /{tenantID}/users/{objectId}/getMemberGroups"
method: POST
path: "/{tenantID}/users/{objectId}/getMemberGroups"
tags: ["User"]
---

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

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

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

## Path parameters

- `objectId` string, required
- `tenantID` string, required

## Query parameters

- `api-version` string, required

## Request body

- UserGetMemberGroupsParameters — Request parameters for GetMemberGroups API call.
  - `securityEnabledOnly` boolean, required — If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked.

## Response `200`

OK. The operation was successful.

- UserGetMemberGroupsResult — Server response for GetMemberGroups API call.
  - `value` string[] — A collection of group IDs of which the user is a member.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/windows/apis/graphrbac.md) · [All operations](https://skmtc.net/windows/apis/graphrbac/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/windows/graphrbac/versions/003d8a5138c2/schema)
