Last active
July 7, 2020 07:51
-
-
Save anilshrish/2208544c4faf0ef92d7e3e3cdb6fc7f0 to your computer and use it in GitHub Desktop.
Apache Superset - assign user role through DB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- # users table | |
SELECT * FROM ab_user; | |
-- # role table | |
SELECT * FROM ab_role; | |
-- # user and role mapping | |
SELECT * FROM ab_user_role; | |
-- # update role_id for user | |
UPDATE ab_user_role SET role_id=<role-id> where user_id=<user-id>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment