Revokes a principal's access to resources (entitlement values, entitlement bundles, or apps).
Returns 200 OK HTTP code after access is revoked with _links to updated resources.
The revocation request parameters
| principalOrn required | string <okta-user-orn> The Okta user, in ORN format. |
| revokeOrns required | Array of strings [ 1 .. 5 ] items List of resource ORNs to revoke access:
|
| actor | string Default: "API" The actor sending the grant request |
Response for a successful revocation
Bad request - invalid revocation parameters
When authentication fails
When authorization fails
When the rate limit has been exceeded
When there is a server fault due to an unexpected error
{- "principalOrn": "orn:okta:directory:00o11edPwGqbUrsDm0g4:users:00ub0oNGTSWTBKOLGLNR",
- "actor": "ADMIN",
- "revokeOrns": [
- "orn:okta:idp:00o11rndFqmZ5rNfs0g4:apps:oidc_client:0oa251e7jQHXVgg5r0g4"
]
}{- "data": [
- {
- "_links": {
- "principal-access": {
- "href": "https://myorg.okta.com/governance/api/v1/principal-access?filter=parent.externalId eq \"0oafxqCAJWWGELFTYASJ\" AND parent.type eq \"APPLICATION\" AND targetPrincipal.externalId eq \"00ub0oNGTSWTBKOLGLNR\" AND targetPrincipal.type eq \"OKTA_USER\""
}, - "principal-entitlements": {
- "href": "https://myorg.okta.com/governance/api/v1/principal-entitlements?filter=parent.externalId eq \"0oafxqCAJWWGELFTYASJ\" AND parent.type eq \"APPLICATION\" AND targetPrincipal.externalId eq \"00ub0oNGTSWTBKOLGLNR\" AND targetPrincipal.type eq \"OKTA_USER\""
}
}
}, - {
- "_links": {
- "principal-access": {
- "href": "https://myorg.okta.com/governance/api/v1/principal-access?filter=parent.externalId eq \"0oafxqCAJWWGELFTYASJ\" AND parent.type eq \"APPLICATION\" AND targetPrincipal.externalId eq \"00ub0oNGTSWTBKOLGLNR\" AND targetPrincipal.type eq \"OKTA_USER\""
}, - "principal-entitlements": {
- "href": "https://myorg.okta.com/governance/api/v1/principal-entitlements?filter=parent.externalId eq \"0oafxqCAJWWGELFTYASJ\" AND parent.type eq \"APPLICATION\" AND targetPrincipal.externalId eq \"00ub0oNGTSWTBKOLGLNR\" AND targetPrincipal.type eq \"OKTA_USER\""
}
}
}
]
}