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
-
identityId(required): string
Unique Identity id.
Header Parameters
-
opc-request-id: string
The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Response
Supported Media Types
- application/json
200 Response
Terminates the Identity for the given Identity Id.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : IdentitiesListResponse
Type:
object
Response model containing a list of successfully terminated identity IDs.
Show Source
-
terminatedIdentities(required):
array terminatedIdentities
List of successfully terminated identity IDs.
Nested Schema : terminatedIdentities
Type:
array
List of successfully terminated identity IDs.
Show Source
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
409 Response
Conflict
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
429 Response
Too Many Requests
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
Default Response
Unknown Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error string.
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 TypeDIRECT
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
- You can verify results by running
GET ${service-instance-url}/access-governance/identities/20250331/identities/{identityId}
, theagTerminated
attribute should be set totrue
."attributes":[ { "name": "agTerminated", "value": true } ]
- You can check a List of Accounts for an Identity. All accounts, except those with the Grant Type set to
Direct
, will be revoked.