UNRESTRICT
If the RESTRICT
command has been used to restrict a role’s access to a resource, the UNRESTRICT
command can be used to remove the restriction.
Syntax
UNRESTRICT <permission_name> ON [<keyspace_name>.]<table_name> FROM <role_name> ;
Syntax legend
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
|
Variable value. Replace with a user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
Set, list, map, or tuple.
Angle brackets ( |
|
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrConfig files. |
- permission
-
A comma separated list of permissions that the role is prevented from using on the resources even if the permissions is granted. Where the permission types are:
ALL PERMISSIONS
orALTER
,AUTHORIZE [FOR permission_list]
,CREATE
,DESCRIBE
,DROP
,MODIFY
(deprecated),SELECT
,TRUNCATE
, orUPDATE
(allowsINSERT
,UPDATE
, orDELETE
). - resource
-
Database object to which the permission is denied. Restriction is applied using modeled hierarchy as follows:
-
ALL KEYSPACES
- restricts access to every keyspace and table. -
KEYSPACE <keyspace_name>
- restricts access on the keyspace and any table it contains -
TABLE <table_name>
- restricts access on the table and all the data it contains
-
Examples
Remove the select restriction from the database admin on the cycling keyspace:
UNRESTRICT SELECT ON KEYSPACE cycling FROM role_admin;