Authentication policies are a set of rules that govern the authentication process for users. Understand authentication policies
Add users to an authentication policy to address the security of different user sets. Understand how to add users to a policy and check the status
OAuth 2.0 scopes required: write:policies:admin
string
Requiredstring
Requiredarray<string>
RequiredThe request has been accepted for processing, but processing has not yet completed.
1
2
3
4
5
6
7
8
9
10
curl --request POST \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/auth-policy/{policyId}/add-users' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"users": [
"<string>"
]
}'
1
2
3
4
{
"taskId": "<string>",
"taskLink": "<string>"
}
Verify that users are assigned to the intended policy and report errors, if any.
OAuth 2.0 scopes required: write:policies:admin
string
Requiredstring
RequiredThe request has succeeded.
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/auth-policy/task/{taskId}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"inProgressCount": 2154,
"successCount": 2154,
"failureCount": 2154,
"failureReasons": [
{
"emails": [
"<string>"
],
"details": {
"status": 2154,
"title": "<string>",
"detail": "<string>"
}
}
]
}
Get authentication policy information for a given list of managed users. This is a bulk action.
string
Requiredarray<string>
RequiredThe request has succeeded.
array<Models.UserPolicyInfo>
1
2
3
4
5
6
7
8
9
10
curl --request POST \
--url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/users/auth-policies/bulk-fetch' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"accountIds": [
"<string>"
]
}'
1
2
3
4
5
6
7
8
9
10
11
[
{
"email": "<string>",
"name": "<string>",
"accountId": "<string>",
"authPolicyInfo": {
"policyId": "<string>",
"dateAdded": 1623868831000
}
}
]
Rate this page: