Skip to content

Instantly share code, notes, and snippets.

@anilshrish
Last active July 7, 2020 07:51
Show Gist options
  • Save anilshrish/2208544c4faf0ef92d7e3e3cdb6fc7f0 to your computer and use it in GitHub Desktop.
Save anilshrish/2208544c4faf0ef92d7e3e3cdb6fc7f0 to your computer and use it in GitHub Desktop.
Apache Superset - assign user role through DB
-- # 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