Skip to main content

Question

How to check users assigned to roles and vice versa?

Answer

Log in as the default user, which has administrator privileges, and check the current user:
Query
Response
Create the user foo:
Query
Response
Create the user bar:
Query
Response
Create the role role_a:
Query
Response
Create the role role_b:
Query
Response
Grant role_a to the users foo and bar:
Query
Response
Grant role_b to the user bar:
Query
Response
Check which users have been assigned role_a:
Query
Response
Check which roles have been assigned to the users foo and bar:
Query
Response
Log in as the user foo, then check the current user and roles:
Query
Response
Query
Response
Log in as the user bar, then check the current user and roles:
Query
Response
Query
Response
Last modified on August 25, 2026