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

Get user

Get information about a user identified by either user key or username. Example request URI(s):

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

GET/rest/api/user
Query parameters
expandstring

properties to expand on the user.

keystring

userkey of the user to request from this resource.

usernamestring

userName of the user to create the new watcher for.

Responses
200

Returns a full JSON representation of a user

profilePictureIcon
Show properties
pathstring
widthinteger<int32>
heightinteger<int32>
isDefaultboolean
displayNamestring
typestring
403

Returned if the calling user does not have permission to view users.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

Returned if a user with the given username or userkey does not exist.

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' \
  -H 'Accept: application/json'
Response
{
  "profilePicture": {
    "path": "http://www.example.com/path/to/image.png",
    "width": 16,
    "height": 16,
    "isDefault": true
  },
  "displayName": "Joe Smith",
  "type": "string"
}

Was this page helpful?