Skip to content

List credential versions for an Active Directory account

Request

OPA roles:
  • end_user

Lists the credential versions for an Active Directory account that the end user has access to

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
ad_account_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 account

Example:a747a818-a4c4-4446-8a87-704216495a08
Query
countinteger, (int32)

The number of objects per page

descendingboolean

If true, results are listed in descending order. By default, results are listed in ascending order.

offsetstring

The offset value for pagination. The rel="next" and rel="prev" Link headers define the offset for subsequent or previous pages.

prevboolean

The direction of paging

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/active_directory/a747a818-a4c4-4446-8a87-704216495a08/accounts/a747a818-a4c4-4446-8a87-704216495a08/credentials/versions?count=0&descending=true&offset=string&prev=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

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