How to get list of roles #6888
Unanswered
deathemperor
asked this question in
Question
Replies: 1 comment 1 reply
-
If you check the network logs, following is how the console gets the list of roles. curl --request POST \
--url http://YOUR_HASURA/v1/query \
--header 'Content-Type: application/json' \
--header 'x-hasura-admin-secret: YOUR_HASURA_ADMIN_KEY' \
--data '{"type":"select","args":{"table":{"schema":"hdb_catalog","name":"hdb_role"},"columns":["role_name"],"order_by":[{"column":"role_name","type":"asc"}]}}' |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try looking around but couldn't find a way to get the list of roles. The "admin, user" roles that is.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions