Skip to content

Set the priority of Active Directory account rules

Request

Early Access
OPA roles:
  • resource_admin

Sets the priority of Active Directory account rules

Security
bearerAuth
Path
team_namestringrequired

The name of your team

ad_connection_idstring, (regex)(schemas-UUID)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-onlyrequired

The UUID of an Active Directory connection

Example:a747a818-a4c4-4446-8a87-704216495a08
Bodyapplication/json
Array [
priorityinteger, [ 1 .. 100 ]

Specify the new priority of the Active Directory account rule. Lower numbers have higher priority.

rule_idstring, (regex)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...

The UUID of the Active Directory account rule

Example:"a747a818-a4c4-4446-8a87-704216495a08"
]
curl -i -X POST \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/resource_assignment/active_directory/a747a818-a4c4-4446-8a87-704216495a08/rules/reorder' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "priority": 1,
      "rule_id": "a747a818-a4c4-4446-8a87-704216495a08"
    }
  ]'

Responses

Success

Bodyapplication/json
listArray of objects(ActiveDirectoryAccountRuleResponse)
Response
{ "list": [ { … } ] }