Cloud
Organizations REST API / Reference / REST API

Users

Postman Collection
OpenAPI
GET

Get managed accounts in an organization

Returns a list of managed accounts in an organization.

Request

Path parameters

orgId

string

Required

Query parameters

cursor

string

Responses

Successful operation

application/json

UserPage
GET/v1/orgs/{orgId}/users
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 { "data": [ { "account_id": "<string>", "account_type": "atlassian", "account_status": "active", "name": "<string>", "picture": "<string>", "email": "<string>", "access_billable": true, "last_active": "<string>", "product_access": [ { "key": "jira-software", "name": "<string>", "url": "<string>", "last_active": "<string>" } ], "links": { "self": "<string>" } } ], "meta": { "total": 35 }, "links": { "self": "<string>", "prev": "<string>", "next": "<string>" } }
POST

Search for users in an organization

The API is available for customers using the new user management experience only. How the new user management experience works

Returns a list of users within an organization, offering search functionality through multiple parameters for more precise results.

Request

Path parameters

orgId

string

Required

Request bodyapplication/json

accountIds

array<string>

accountTypes

array<string>

accountStatuses

array<string>

namesOrNicknames

NamesOrNicknames

emailUsernames

EmailUsernames

emailDomains

EmailDomains

isSuspended

boolean

cursor

string

limit

integer

expand

array<string>

Responses

Organization found. Response contains user search results

application/json

UsersSearchPage
POST/v1/orgs/{orgId}/users/search
1 2 3 4 5 6 7 8 curl --request POST \ --url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users/search' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "limit": 20 }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 { "data": [ { "accountId": "123e4567-e89b-12d3-a456-426614174000", "accountType": "atlassian", "accountStatus": "active" } ], "links": { "next": "MDNlZWRmNzMtMWYwMi00NGM5LWI4NjgtZGQ1NTIwMjIwYjhj", "self": "MDI0MzkwOGEtMmYyOC00NzgzLWI5YTktMDUwZTExNzJjZDU4" } }
GET

Get users in an organizationExperimental

Returns a page of users in an organization that match the supplied parameters.

Request

Path parameters

orgId

string

Required
directoryId

string

Required

Query parameters

cursor

string

limit

integer

accountIds

array<string>

directoryIds

array<string>

resourceIds

array<string>

groupIds

array<string>

claimStatus

string

accountStatus

array<string>

membershipStatus

array<string>

roleIds

array<string>

Responses

Returned if the request is successful.

application/json

MultiDirectoryUserPage
GET/v2/orgs/{orgId}/directories/{directoryId}/users
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/users' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 { "data": [ { "accountId": "12345678-1234-1234-1234-123456789012", "accountType": "atlassian", "accountStatus": "active", "membershipStatus": "active", "addedToOrg": "2024-01-01T00:00:00.000Z", "name": "John Doe", "nickname": "Jonny", "email": "email@example.com", "emailVerified": true, "claimStatus": "unmanaged", "platformRoles": [ "atlassian/org-admin" ], "picture": "https://picture.example.com/picture.png", "avatar": "https://avatar.example.com/avatar.png", "counts": { "resources": 10 }, "links": { "self": "ECg53CukK1twBo0LK1u9nw" } } ], "links": { "self": "ObSbZxpM1f1fzia2_GnuJw", "prev": "LIZFEbzCT2pCCkQhPIUgIQ", "next": "kloHX1ZQVasDAkx_P48NYQ" } }
GET

Get user statsExperimental

Returns user stats for the organization.

Request

Path parameters

orgId

string

Required
directoryId

string

Required

Responses

Returned if the request is successful.

application/json

MultiDirectoryUserStats
GET/v2/orgs/{orgId}/directories/{directoryId}/users/stats
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/users/stats' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 { "roles": [ { "roleId": "atlassian/org-admin", "count": 3 } ], "accountStatus": [ { "status": "active", "count": 5 }, { "status": "inactive", "count": 1 }, { "status": "closed", "count": 2 } ] }
GET

Get user role assignmentsExperimental

Returns a page of role assignments for a user that match the supplied parameters.

Request

Path parameters

orgId

string

Required
directoryId

string

Required
accountId

string

Required

Query parameters

cursor

string

limit

integer

directoryIds

array<string>

resourceOwners

array<string>

resourceIds

array<string>

Responses

Returned if the request is successful.

application/json

MultiDirectoryUserRoleAssignmentPage
GET/v2/orgs/{orgId}/directories/{directoryId}/users/{accountId}/role-assignments
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/v2/orgs/{orgId}/directories/{directoryId}/users/{accountId}/role-assignments' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 { "data": [ { "resourceId": "ari:cloud:jira-core::site/1", "resourceOwner": "jira-core", "roles": [ "atlassian/user" ] } ], "links": { "self": "ObSbZxpM1f1fzia2_GnuJw", "prev": "LIZFEbzCT2pCCkQhPIUgIQ", "next": "kloHX1ZQVasDAkx_P48NYQ" } }

Rate this page: