Revoke a granted permission

post

/access-governance/access-controls/20250331/permissions/{permissionId}/actions/revoke

Revokes a granted permission for a given global identity. Grant type must be DIRECT or REQUEST. For Access Bundles, permissionType should be ACCESS_BUNDLE. For Permissions & Roles, permissionType should be PERMISSION. Request is asynchronous.

Request

Path Parameters
Header Parameters
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Body ()
Details for revoking the permission.
Root Schema : RevokePermissionDetails
Type: object
Permission revocation details.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Revocation in progress.
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 : RevokePermissionStatus
Type: object
Permission revocation summary.
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 you can revoke a permission using permission ID.

Before revoking a permission, you may want to run
  • Access Request Details - [GET] {BasePath}/approvals/{accessRequestId} to fetch identity IDs and permission IDs.

In this example, we are revoking the requested Access Bundle. So, enter the Access Bundle ID as the Permission ID.

cURL Request Example

curl -i -X POST \
   -H "Authorization:Bearer <your-access-token>" \
   -H "Content-Type:application/json" \
   -d \
'{
  "globalId": "globalId.ICF.xxxxx-744e-4689-b04b-94f198920763.xxx",
  "permissionType": "ACCESS_BUNDLE"
}' \
 '<${service-instance-url}/access-controls/${version}/permissions/${permissionId}/actions/revoke>'

Submit the POST request

${service-instance-url}/access-governance/access-controls/${version}/permissions/${permissionId}/actions/revoke

Example Request Payload

{
  "globalId": "globalId.ICF.xxxxx-744e-4689-b04b-94f198920763.xxx",
  "permissionType": "ACCESS_BUNDLE"
}

Example of the Response Code

You'll receive 200 OK response along with the following response body:

{
    "globalId": "globalId.ICF.xxxxx-744e-4689-b04b-94f198920763.xxx",
    "status": "Revoke in Progress"
}
Back to Top