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

KeyDatatypeRequiredDescription
accountIdstringThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. Required.
usernamestringThis parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
keystringThis parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
expandstringUse 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

{&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g&quot;,&quot;key&quot;:&quot;&quot;,&quot;accountId&quot;:&quot;5b10a2844c20165700ede21g&quot;,&quot;name&quot;:&quot;&quot;,&quot;emailAddress&quot;:&quot;mia@example.com&quot;,&quot;avatarUrls&quot;:{&quot;48x48&quot;:&quot;https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48\u0026s=48&quot;,&quot;24x24&quot;:&quot;https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24\u0026s=24&quot;,&quot;16x16&quot;:&quot;https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16\u0026s=16&quot;,&quot;32x32&quot;:&quot;https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32\u0026s=32&quot;},&quot;displayName&quot;:&quot;Mia Krystof&quot;,&quot;active&quot;:true,&quot;timeZone&quot;:&quot;Australia/Sydney&quot;,&quot;groups&quot;:{&quot;size&quot;:3,&quot;items&quot;:[]},&quot;applicationRoles&quot;:{&quot;size&quot;:1,&quot;items&quot;:[]}}