In the CQL shell, how do I list all users? I can't seem to find it anywhere on Stack Overflow.
To list all the tables (only the table names), DESC tables; To list all the tables and the schemas (CQL creation statements), DESC {$KEYSPACE_NAME} whereas {$KEYSPACE_NAME} is the name of the keyspace.
Go to data tab > there you will see all keyspcaces created by you and some system keyspaces. You can see all tables under individual keyspaces and also replicator factor for keyspace.
Prior to the introduction of roles in Cassandra 2.2, authentication and authorization were based around the concept of a USER.
Cassandra 2.2 onward CQL uses database roles to represent users and group of users. So to list users use below command accordingly.
LIST USERS; -- cassandra version < 2.2
LIST ROLES; -- cassandra version >= 2.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With