Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get groups

Get a paginated collection of groups that the given user is a member of. Example request URI(s):

http://example.com/confluence/rest/api/user/memberof?username=jblogs http://example.com/confluence/rest/api/user/memberof?key=402880824ff933a4014ff9345d7c0002

GET/rest/api/user/memberof
Query parameters
expandstring

properties to expand on the user.

limitstring

the limit of the number of users to return, this may be restricted by fixed system limits.

startstring

the start point of the collection to return. This must be non-negative. Default value is 0.

keystring

userkey of the user to request from this resource

usernamestring

userName of the user to get the groups for.

Responses
200

Returns a full JSON representation of a user.

resultsPerson[]
Show properties
Array of Person
profilePictureIcon
Show properties
pathstring
widthinteger<int32>
heightinteger<int32>
isDefaultboolean
displayNamestring
typestring
startnumber
limitnumber
sizenumber
_linksobject
Show properties
basestring
selfstring
contextstring
nextstring
prevstring
403

Returned if the calling user does not have permission to use confluence.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/user/memberof' \
  -H 'Accept: application/json'
Response
{
  "results": [
    {
      "profilePicture": {
        "path": "http://www.example.com/path/to/image.png",
        "width": 16,
        "height": 16,
        "isDefault": true
      },
      "displayName": "Joe Smith",
      "type": "string"
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}

Was this page helpful?