---
title: "Retrieve OrgUser Groups"
method: GET
path: "/organizations/{orgId}/users/{id}/usergroups"
tags: ["OrgUsers"]
---

# Retrieve OrgUser Groups

`GET /organizations/{orgId}/users/{id}/usergroups`

Retrieve a list of User Groups for an OrgUser.

Retrieves a list of all User Groups that a specific user belongs to within an Organization. The list can be paginated for easier management.

**Notes:**
- **User Groups as Resource Groups**. A User Group is a Resource Group - one used to group resources of type `user`. You can use the *Create ResourceGroup* call detailed in the [ResourceGroup](https://www.m3ter.com/docs/api#tag/ResourceGroup) section to create a User Resource Group, and then use the *Add Item* and *Remove Item* calls to manage which Users belong to the User Resource Group.
- **Using the `inherited` parameter for the Retrieve OrgUser Groups call**. Resource Groups can be nested, which means a User Resource Group can contain another User Resource Group as a member. You can use the `inherited` parameter with this *Retrieve OrgUser Groups* call as a *QUERY PARAMETER* to control which User Resource Groups are returned:

* If the user specified belongs to a User Resource Group that is nested as part of another User Resource Group:
	* If `inherited = TRUE`, then any Groups the user belongs to AND any parent Groups those Groups belong to as nested Groups are returned.
	* If `inherited = FALSE`, then only those User Resource Groups to which the user belongs are returned.

## Path parameters

- `orgId` string, required
- `id` string, required

## Query parameters

- `pageSize` integer
- `nextToken` string

## Response `200`

Returns a list of User Groups

- ResourceGroupResponse
  - `id` string, required — The UUID of the entity.
  - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
  - `name` string — The name of the Resource Group.
  - `dtCreated` string, date-time — The date and time *(in ISO-8601 format)* when the Resource Group was created.
  - `dtLastModified` string, date-time — The date and time *(in ISO-8601 format)* when the Resource Group was last modified.
  - `createdBy` string — The unique identifier (UUID) of the user who created this Resource Group.
  - `lastModifiedBy` string — The unique identifier (UUID) of the user who last modified this Resource Group.

## Other responses

- `4XX` — Error message
- `5XX` — Error message

---

[API](https://skmtc.net/m3ter-com/apis/m3ter-api.md) · [All operations](https://skmtc.net/m3ter-com/apis/m3ter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/m3ter-com/m3ter-api/versions/ac93d1a9e6d9/schema)
