Granting permissions

Once created, permissions can be granted to roles:

GRANT SELECT ON KEYSPACE packt_test TO data_reader;GRANT MODIFY ON KEYSPACE packt_test TO data_reader;

Roles can also be granted to other roles:

GRANT data_reader TO kyle;

More liberal permissions can also be granted:

GRANT ALL PERMISSIONS ON KEYSPACE packt_test TO kyle;

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.