List user's groups
Retrieves a paginated list of user groups that the user is assigned to. Optional query parameters allow sorting of the results.
API-KeyX-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
The unique identifier of the user.
The page number to retrieve.
int321 <= value1The number of groups to return per page.
int321 <= value <= 5010Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending.
Supported fields include - creation_time.
Response Headers
200
Returns the x-Pagination header
Number of items returned per page.
int32The current page number.
int32Total number of items available.
int32Indicates whether a previous page exists.
Indicates whether a next page exists.
Response Body
application/json
The user's group associations were retrieved successfully
TypeScript Definitions
Use the response body type in TypeScript.
Returns an array. Each item has the fields below.
User Group: Represents the membership of a user in a group.
Errors
curl -X GET "https://your-domain.us.monocloud.com/api/users/WUgDGqaqzqkRmsgd3PFAT/groups?page=1&size=10&sort=creation_time%3A1" \ -H "X-API-KEY: <token>"[ { "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "user_id": "string", "creation_time": 0, "group_name": "string" }]Disconnect an external authenticator POST
Removes a linked external authentication provider (such as Google, Microsoft, GitHub, etc.) from the user’s account. After disconnection, the user will no longer be able to authenticate using that provider.
Retrieve a user group GET
Retrieves information about the specified group and the user’s membership in it.