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:
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.
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"
}
Rate this page: