Get group memberships for user

GET {{baseUrl}}/api/user/memberof?key=<string>&username=<string>&accountId=<string>&start=0&limit=200

Returns the groups that a user is a member of.

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Request Params

KeyDatatypeRequiredDescription
keystringThis parameter is no longer available and will be removed from the documentation soon.
Use accountId instead.
See the deprecation notice for details.
usernamestringThis parameter is no longer available and will be removed from the documentation soon.
Use accountId instead.
See the deprecation notice for details.
accountIdstring(Required) The account ID of the user, which uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192.
startnumberThe starting index of the returned groups.
limitnumberThe maximum number of groups to return per page.
Note, this may be restricted by fixed system limits.

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;type&quot;:&quot;group&quot;,&quot;name&quot;:&quot;consequat amet &quot;,&quot;id&quot;:&quot;Ut&quot;,&quot;_links&quot;:{}},{&quot;type&quot;:&quot;group&quot;,&quot;name&quot;:&quot;qui eu&quot;,&quot;id&quot;:&quot;consequat quis occaecat proident voluptate&quot;,&quot;_links&quot;:{}}],&quot;start&quot;:-67251213,&quot;limit&quot;:46114380,&quot;size&quot;:-50386405}