Org Directory APIs
Additional response parameters of the API (for e.g., added_to_org
) are available only to customers using the new user management experience. Learn more about the new user management experience.
Specifications:
product_access
response field will be empty.Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
Requiredstring
Successful operation
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/users/{accountId}/last-active-dates' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"data": {
"product_access": [
{
"id": "<string>",
"key": "jira-software",
"last_active": "<string>"
}
],
"added_to_org": "<string>"
},
"links": {
"next": "<string>"
}
}
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
Specifications:
The users are not removed immediately; instead, they are placed in a queue for deletion. Please note that it may take some time for all users to be completely removed.
Users with emails whose domain is claimed can still be found in Managed accounts in Directory.
Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
RequiredUser access removed from organization. Everything went fine, nothing to return. The users are not removed immediately; instead, they are placed in a queue for deletion. Please note that it may take some time for all users to be completely removed.
1
2
3
curl --request DELETE \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/users/{accountId}' \
--header 'Authorization: Bearer <access_token>'
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
Specifications:
Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
RequiredUser was successfully suspended in the organization directory.
1
2
3
4
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/users/{accountId}/suspend-access' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
{
"message": "Access to organization 6665kc2j-4644-14k8-j32c-68cc0b1d15b8 was suspended for user 637194fa77acd224b33bfae3"
}
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
This API will:
This API will not:
Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
RequiredUser's access is successfully restored in the organization directory.
1
2
3
4
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/users/{accountId}/restore-access' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
{
"message": "Access to organization 6665kc2j-4644-14k8-j32c-68cc0b1d15b8 was restored for user 637194fa77acd224b33bfae3"
}
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
This API will:
The creation of new groups using existing group names is not permitted.
Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
Requiredstring
Request to create group was successfully accepted and will be eventually created in the organization directory.
1
2
3
4
5
6
7
8
9
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>"
}'
1
2
3
4
{
"message": "Group test-group was created",
"groupId": "f29c72a8-7681-4ed0-8a2c-83372bf67437"
}
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
This API will:
This API will not:
site-admin
group and therefore revoke org-admin role from a user.Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
Requiredboolean
Group was successfully deleted from organization's directory.
1
2
3
4
curl --request DELETE \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups/{groupId}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
{
"message": "Group 0980d761-fce5-4ea1-83e4-9cc8f5db92ae was removed"
}
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
This API will:
This API will not:
Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
Requiredstring
RequiredUser was successfully added to the group in the organization directory.
1
2
3
4
5
6
7
8
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups/{groupId}/memberships' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"account_id": "<string>"
}'
1
2
3
{
"message": "User 637194fa77acd224b33bfae3 was added to group 9233fb03-53cc-4463-9698-047aedbffb5c"
}
The API is available for customers using the new user management experience only. Learn more about the new user management experience.
This API will:
This API will not:
site-admin
group and therefore revoke org-admin role from a user.Learn the fastest way to call the API with a detailed tutorial.
string
Requiredstring
Requiredstring
RequiredUser was successfully removed from the group in the organization directory.
1
2
3
4
curl --request DELETE \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups/{groupId}/memberships/{accountId}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
{
"message": "User 63ec0aa0c5061c632c0cddde was removed from group fca77b90-a2a9-4385-961b-1377b3dbeb0b"
}
The API is available for customers using the new user management experience only.
This API is in limited availability and access. The development, release, and timing of any features or functionality described herein remain at the sole discretion of Atlassian and are subject to change. Please reach out to Atlassian support to get access to this API.
This API will:
This API will not:
string
Requiredstring
RequiredRoleAssociation
boolean
string
Invitation successfully sent
array<string>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users/invite' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"email": "<string>",
"permissionRule": {
"resource": "ari:cloud:jira::site/70ef3a32-d0da-4e09-b35e-0109f91969c3",
"role": "atlassian/user"
},
"sendNotification": true,
"notificationText": "<string>"
}'
1
2
3
[
"619034:4eb0cd3f-3cb6-4561-8d6a-0546e66cab3d"
]
The API is available for customers using the new user management experience only.
This API is in limited availability and access. The development, release, and timing of any features or functionality described herein remain at the sole discretion of Atlassian and are subject to change. Please reach out to Atlassian support to get access to this API.
Assign roles that grant product access to groups. Please note that this operation adheres to eventual consistency, and it might take up to 30 seconds for changes to take effect.
string
Requiredstring
Requiredarray<RoleAssociation>
RequiredRoles were successfully added to the group
1
2
3
4
5
6
7
8
9
10
11
12
13
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups/{groupId}/roles/assign' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"roleAssociations": [
{
"resource": "ari:cloud:jira::site/70ef3a32-d0da-4e09-b35e-0109f91969c3",
"role": "atlassian/user"
}
]
}'
1
2
3
{
"message": "Group 12345 added Roles. ROLE `user` for RESOURCE `ari:cloud:identity::group/test-group-uuid1` and ROLE `user-access-admin` for RESOURCE `ari:cloud:identity::group/test-group-uuid2` is in progress. Changes may take up to 30 seconds to reflect."
}
The API is available for customers using the new user management experience only.
This API is in limited availability and access. The development, release, and timing of any features or functionality described herein remain at the sole discretion of Atlassian and are subject to change. Please reach out to Atlassian support to get access to this API.
Revoke roles that provide product access to groups. It's important to note that this operation follows eventual consistency principles and may require up to 30 seconds to take effect.
string
Requiredstring
Requiredarray<RoleAssociation>
RequiredRoles were successfully removed from the group
1
2
3
4
5
6
7
8
9
10
11
12
13
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/directory/groups/{groupId}/roles/revoke' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"roleAssociations": [
{
"resource": "ari:cloud:jira::site/70ef3a32-d0da-4e09-b35e-0109f91969c3",
"role": "atlassian/user"
}
]
}'
1
2
3
{
"message": "Group 12345 revoked Roles. ROLE1 for RESOURCE1 and ROLE2 for RESOURCE2 is in progress. Changes may take up to 30 seconds to reflect."
}
The API is available for customers using the new user management experience only.
This API is in limited availability and access. The development, release, and timing of any features or functionality described herein remain at the sole discretion of Atlassian and are subject to change. Please reach out to Atlassian support to get access to this API.
This API can be used to grant Platform Roles to a user.
string
Requiredstring
Requiredstring
Requiredstring
Role Assigned Successfully.
1
2
3
4
5
6
7
8
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users/{userId}/roles/assign' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "atlassian/user",
"resource": "ari:cloud:platform::site/70ef3a32-d0da-4e09-b35e-0109f91969c3"
}'
The API is available for customers using the new user management experience only.
This API is in limited availability and access. The development, release, and timing of any features or functionality described herein remain at the sole discretion of Atlassian and are subject to change. Please reach out to Atlassian support to get access to this API.
This API can be used to revoke Platform Roles from a user.
string
Requiredstring
Requiredstring
Requiredstring
Role Revoked Successfully.
1
2
3
4
5
6
7
8
curl --request POST \
--url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/users/{userId}/roles/revoke' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "atlassian/user",
"resource": "ari:cloud:platform::site/70ef3a32-d0da-4e09-b35e-0109f91969c3"
}'
Rate this page: