Skip to main content

List the groups a user belongs to.

GET/api/v1/users/{user_id}/groupsusers:read

Keyset list of the groups the user is a member of, by group_id; the inverse of GET /groups/{group_id}/members. A user removed from the company is 404 not_found. Needs View Users, View Groups and View User Group Memberships.

Scopeusers:read
AsynchronousNo
MCP toollist_user_groups
Portal permissionsview_groups, view_users, view_user_group_memberships
Pagingkeyset
Default ordergroup_id
Sort fieldsgroup_id

Parameters​

NameInTypeRequiredDescription
user_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of GroupRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Group​

FieldTypeRequiredDescription
descriptionstring or nullRequired
group_idstringRequired
group_namestringRequired
identity_provider_groupstring or nullRequiredThe identity provider's group this one mirrors; null when not bound, or without View Sso Identity Mappings.
is_defaultbooleanRequiredWhether people provisioned by single sign-on are added to the group.
is_externalbooleanRequired