Terminate an Identity

post

/access-governance/identities/20250331/identities/{identityId}/action/terminate

Terminates all accounts and associated accesses for an identity immediately without an approval for a given id. Accounts with Grant Type __DIRECT__ or __Direct__ cannot be terminated.

Request

Path Parameters
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

Terminates the Identity for the given Identity Id.
Headers
  • For optimistic concurrency control. See `if-match`.
  • 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 : IdentitiesListResponse
Type: object
Response model containing a list of successfully terminated identity IDs.
Show Source
Nested Schema : terminatedIdentities
Type: array
List of successfully terminated identity IDs.
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

409 Response

Conflict
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 you can terminate all accounts and associated accesses for a given identity without an approval process. The identity would still remain Active in Oracle Access Governance.

Note:

Accounts with Grant Type DIRECT or Direct cannot be terminated.
.

cURL Request Example

curl -i -X POST \
   -H "Authorization:Bearer <your-access-token>" \
   -H "Content-Type:application/json" \
 '<${service-instance-url}/access-governance/identities/20250331/identities/{identityId}/action/terminate>'

Submit the POST request

${service-instance-url}/access-governance/identities/20250331/identities/{identityId}/action/terminate>

Example of the Response Code

You'll receive 200 OK response along with global Id of identity that's terminated.

Verify Result

  1. You can verify results by running GET ${service-instance-url}/access-governance/identities/20250331/identities/{identityId}, the agTerminated attribute should be set to true.
    "attributes":[
    {
    "name": "agTerminated",
    "value": true
    }
    ]
  2. You can check a List of Accounts for an Identity. All accounts, except those with the Grant Type set to Direct, will be revoked.
Back to Top