Get User
GET {{baseUrl}}/rest/api/3/user?accountId=<string>&username=<string>&key=<string>&expand=<string>
Returns a user.
Permissions required: Browse users and groups global permission.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
accountId | string | The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required. | |
username | string | This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details. | |
key | string | This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details. | |
expand | string | Use expand to include additional information about users in the response. This parameter accepts a comma-separated list. Expand options include: |
groups
includes all groups and nested groups to which the user belongs.applicationRoles
includes details of all the applications to which the user has access. |
RESPONSES
status: OK
{"self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g","key":"","accountId":"5b10a2844c20165700ede21g","name":"","emailAddress":"mia@example.com","avatarUrls":{"48x48":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48\u0026s=48","24x24":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24\u0026s=24","16x16":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16\u0026s=16","32x32":"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32\u0026s=32"},"displayName":"Mia Krystof","active":true,"timeZone":"Australia/Sydney","groups":{"size":3,"items":[]},"applicationRoles":{"size":1,"items":[]}}