Revoke a role

post

/access-governance/access-controls/20250331/roles/{roleId}/revoke

Revokes a role.

Request

Path Parameters
Header Parameters
Body ()
Details for revoking a role.
Root Schema : RevokeRoleDetails
Type: object
The information needed for revoking role.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Role revoke was successfully requested.
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 : RoleData
Type: object
Role Data.
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 to revoke a role for an identity by submitting a POST request.

Run the following APIs before revoking a role:
  • GET identities/{version}/identities: Choose the identity for which you want to revoke a role.
  • GET identities/{version}/identities/{identityId}/roles: List Role for an identity to select a role that you want to revoke.

cURL Example

curl -i -X POST \
   -H "Authorization:Bearer <your access token>" \
   -d \
  '{
    "globalIdentityId": "globalId.8d51xxxxa7fb"
  }'\
 'https://${service-instance-url}/access-governance/access-controls/20250331/roles/{roleId}/revoke'

Example of the Response Body

The following example shows the contents of the response body in JSON format, including a list of all available roles:

{
"globalIdentityId": "globalId.8d51xxxxa7fb",
"state": "Revoke in Progress"
}
Back to Top