Gets a list of all Accounts

get

/access-governance/identities/20250331/identities/{identityId}/accounts

Returns a list of Accounts. Note keyword searches are limited to the name field and the first keyword query param.

Request

Path Parameters
Query Parameters
  • Collection Format: multi
    Maximum Number of Items: 5
    The list of keywords to filter on
  • Minimum Value: 1
    Maximum Value: 1000
    The maximum number of items to return.
    Default Value: 10
  • Minimum Length: 1
    A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
  • The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
    Default Value: timeCreated
    Allowed Values: [ "timeCreated", "displayName" ]
  • The sort order to use, either 'ASC' or 'DESC'.
    Allowed Values: [ "ASC", "DESC" ]
Header Parameters
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Back to Top

Response

Supported Media Types

200 Response

A list of Account objects.
Headers
  • For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : AccountCollection
Type: object
List of Accounts.
Show Source
Nested Schema : items
Type: array
List of Accounts.
Show Source
Nested Schema : AccountSummary
Type: object
Summary of the Account.
Show Source
Nested Schema : Info
Type: object
Generic information object.
Show Source

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Back to Top

Examples

The following example shows how to retrieve a list of accounts by submitting a GET request.

cURL Example - Without Query Parameters

curl -i -X \
 GET \
 -H \
 "Authorization:Bearer <your access token>" \
 '${service-instance-url}/access-governance/identities/${versionId}/identities/${IdentityId}/accounts'

cURL Example - With Query Parameters

cURL command to restrict the data and include only Workforce Identities.

curl -i -X GET \
   -H "Authorization:Bearer <your access token>" \
 '${service-instance-url}/access-governance/identities/${versionId}/identities/${IdentityId}/accounts?keywordContains=Bill'

Example of the Response Body

The following example shows the contents of the response body in JSON format:

{
  "items": [
    {
      "id": "globalId.125123c3-xxxx-4d6a-b6d4-6c0f6537bad2.55045.02e36bbb4b201421b44aa046b3ceb16a",
      "name": "Bill Clark",
      "passwordChangeStatus": "Never Attempted",
      "isPmProvisioned": true,
      "timeUpdated": null,
      "resourceName": "Database Access Management",
      "orchestratedSystemIdentityId": "targetId.account.ICF.da7efca4-xxxx-4d4f-8ad3-c55ac9362de6.a285ce40190faf23401a9e2c3f35682c",
      "grantType": "DIRECT",
      "orchestratedSystemType": "ICF",
      "risk": "1",
      "isPolicyGrant": false,
      "accountStatus": "ENABLED",
      "canDisable": true,
      "canDelete": true,
      "state": null,
      "orchestratedSystem": {
        "id": "da7efca4-xxxx-4d4f-8ad3-c55ac9362de6",
        "name": "Database Access Management",
        "displayName": null
      }
    },
    {
      "id": "globalId.125123c3-xxxx-4d6a-b6d4-6c0f6537bad2.55045.02e36bbb4b201421b44aa046b3ceb16a",
      "name": "Bill Clark",
      "passwordChangeStatus": "Not Applicable",
      "isPmProvisioned": false,
      "timeUpdated": null,
      "resourceName": "database-tenancy",
      "orchestratedSystemIdentityId": "targetId.account.OCI.bd49ff2a-xxxx-4242-8975-9ba235fbb0ec.fa8db78c5e0b4395354ca399728604fa",
      "grantType": "DIRECT",
      "orchestratedSystemType": "OCI",
      "risk": "1",
      "isPolicyGrant": false,
      "accountStatus": "ENABLED",
      "canDisable": true,
      "canDelete": false,
      "state": null,
      "orchestratedSystem": {
        "id": "bd49ff2a-xxxx-4242-8975-9ba235fbb0ec",
        "name": "Database Performance Optimization OCI",
        "displayName": null
      }
    }
  ]
}
Back to Top