Skip to content

Get user groups
Stable

Request

Get user's groups

Security
apiKey
Path
user_idstring, (uuid)required

AuthN User Id. The authn_user_id from the Get Users response.

Query
sub_groupsboolean

Set to true to get a list of the user’s subgroup access. Users have access to their group’s subgroups.

cURL
curl -i -X GET \
  'https://develop-api.esper.io/_mock/openapi/authz2/v1/users/{user_id}/groups?sub_groups=true' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

User Groups

Bodyapplication/json
group_idsArray of strings, (uuid)
has_all_group_accessboolean
Response
{ "group_ids": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "has_all_group_access": true }