Skip to content

List all app service accounts

Request

OAuth 2.0 scope:
  • okta.serviceAccounts.read

Lists all app service accounts

Query
limitinteger, [ 1 .. 200 ]

A limit on the number of objects to return

Default:20
afterstring

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

matchstring, [ 3 .. 255 ] characters

Searches for app service accounts where the account name (name), username (username), app instance label (containerInstanceName), or OIN app key name (containerGlobalName) contains the given value

Example:match=salesforce
curl -i -X GET \
  'https://subdomain.okta.com/privileged-access/api/v1/service-accounts?limit=20&after=string&match=salesforce'

Responses

Success

Bodyapplication/json
Array [
containerGlobalNamestringread-only

The key name of the app in the Okta Integration Network (OIN)

Example:"salesforce"
containerInstanceNamestringread-only

The app instance label

Example:"salesforce Prod 5"
containerOrnstringrequired

The ORN of the relevant resource.

Use the specific app ORN format (orn:{partition}:idp:{yourOrgId}:apps:{appType}:{appId}) to identify an Okta app instance in your org.

Example:"orn:okta:idp:00o1n8sbwArJ7OQRw406:apps:salesforce:0oa1gjh63g214q0Hq0g4"
createdstring, (date-time)read-only

Timestamp when the app service account was created

descriptionstring, (regex), [ 0 .. 255 ] characters

The description of the app service account

Example:"This is for accessing salesforce Prod-5"
idstring, (regex)(?i)^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}...read-only

The UUID of the app service account

Example:"a747a818-a4c4-4446-8a87-704216495a08"
lastUpdatedstring, (date-time)read-only

Timestamp when the app service account was last updated

namestring, (regex), [ 1 .. 100 ] characters^[\w\-_. ]+$required

The user-defined name for the app service account

Example:"salesforce Prod-5 account"
ownerGroupIdsArray of strings, [ 0 .. 10 ] items

A list of IDs of the Okta groups who own the app service account

Example:
[ "00g57qp78yZT2XBA40g7" ]
ownerUserIdsArray of strings, [ 0 .. 10 ] items

A list of IDs of the Okta users who own the app service account

Example:
[ "00u11s48P9zGW8yqm0g5" ]
statusstring(ServiceAccountStatus)read-only

Describes the current status of a service account

Enum ValueDescription
NO_ISSUES

The account is ready for use in Okta Privileged Access

UNSECURED

The account needs to be assigned to a resource group and a project in Okta Privileged Access

INFO

An action involving the account is in progress in Okta Privileged Access

ALERT

The account requires attention from an admin

ERROR

An error is preventing Okta Privileged Access from using the account

Example:"UNSECURED"
statusDetailstring(ServiceAccountStatusDetail)read-only

Describes the detailed status of a service account

Enum ValueDescription
PENDING

The account is being created

CREATION_FAILED

The account can't be created

STAGED

The account is in the Okta Privileged Access resource assignment area

ROTATING

The account is assigned to a project in Okta Privileged Access. Credentials are currently being synced using Okta Lifecycle Management.

ROTATED

The account is assigned to a project in Okta Privileged Access. Password rotations are fulfilled by Okta Lifecycle Management.

ROTATION_FAILED

The account is assigned to a project in Okta Privileged Access. An error occurred while using Okta Lifecycle Management to rotate the password.

VAULTED

The account is assigned to a project in Okta Privileged Access. A manually managed password is assigned to the account.

MISSING_PASSWORD

The account is assigned to a project in Okta Privileged Access. A password isn't assigned to the account.

UNMANAGED

The account is assigned to a project in Okta Privileged Access. Initial password sync hasn't been attempted.

Example:"STAGED"
usernamestring, [ 1 .. 100 ] charactersrequired

The username that serves as the direct link to your managed app account. Ensure that this value precisely matches the identifier of the target app account.

Example:"testuser-salesforce-5@example.com"
]
Response
[ { "id": "a747a818-a4c4-4446-8a87-704216495a08", "name": "salesforce Prod-1 account", "description": "This is for accessing salesforce Prod-1", "username": "testuser-salesforce-1@example.com", "containerOrn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:apps:salesforce:0oa1gjh63g214q0Hq0g4", "containerInstanceName": "salesforce-1", "containerGlobalName": "salesforce", "ownerGroupIds": [ … ], "ownerUserIds": [ … ], "status": "NO_ISSUES", "statusDetail": "ROTATED", "created": "2024-04-04T15:56:05.000Z", "lastUpdated": "2024-04-05T18:15:44.000Z" }, { "id": "a747a818-a4c4-4446-8a87-704216495a09", "name": "salesforce Prod-5 account", "description": "This is for accessing salesforce Prod-5", "username": "testuser-salesforce-5@example.com", "containerOrn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:apps:salesforce:0oa1gjh63g214q0Hq0g4", "containerInstanceName": "salesforce-5", "containerGlobalName": "salesforce", "ownerGroupIds": [ … ], "ownerUserIds": [ … ], "status": "NO_ISSUES", "statusDetail": "ROTATED", "created": "2024-04-04T15:56:05.000Z", "lastUpdated": "2024-04-05T18:15:44.000Z" } ]