REVOKE APPLICATION ROLE
statementsupportedAccess control (grants, roles)previewRevokes an application role from an account role, another application role, an application, or a user.
Syntax
supportedpartialnot supportednot scored
REVOKE [ GRANT OPTION FOR ]
APPLICATION ROLE <name>
FROM ROLE <parent_role_name>
[ RESTRICT | CASCADE ]
REVOKE APPLICATION ROLE <name> FROM { APPLICATION ROLE <application_role> | APPLICATION <application> | USER <user_name> }
Parameters
| Name | Required | Description |
|---|---|---|
name | Specifies the identifier for the application role to revoke. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. | |
FROM ROLE parent_role_name | Revokes the application role from the specified account role. | |
APPLICATION ROLE application_role | Revokes the role from the specified application role. | |
APPLICATION application | Revokes the role from the specified application. | |
USER user_name | Revokes the application role from the specified user. | |
GRANT OPTION FOR | optional | If specified, removes the ability for the recipient account role to grant the application role further. The application role grant itself remains, so the recipient role still inherits the application role’s privileges. Default: No value, which revokes the application role grant. |
RESTRICT | CASCADE | optional | Determines whether the revoke operation succeeds when the recipient role has granted the application role further. These clauses apply to REVOKE APPLICATION ROLE ... FROM ROLE. RESTRICT: If the recipient role has granted the application role further, the REVOKE command fails. CASCADE: If the recipient role has granted the application role further, the REVOKE command recursively revokes these dependent grants. GRANT OPTION FOR ... CASCADE revokes the dependent grants and leaves the application role grant in place without the grant option. CASCADE without GRANT OPTION FOR revokes the application role grant and the dependent grants. Default: RESTRICT |
Usage notes
- An application role may only be revoked from another application role within the context of the installed application, for example, in the application’s setup script.
See also
- ALTER APPLICATION ROLE
- CREATE APPLICATION ROLE
- GRANT APPLICATION ROLE
- SHOW APPLICATION ROLES
- REVOKE ROLE
- REVOKE DATABASE ROLE