Programmatically create or Update a Superset role #18296
Replies: 5 comments
-
Yes, Its possible actually, You can check test def create_user_with_roles in base_test.py |
Beta Was this translation helpful? Give feedback.
-
It doesn't seem there is a way to do this through the API currently. I'm looking for other methods that might serve this purpose. |
Beta Was this translation helpful? Give feedback.
-
I am also looking for creating a custom role. Is it possible to have this feature on the superset CLI? |
Beta Was this translation helpful? Give feedback.
-
You can create one as per your requirement and expose it in superset_config |
Beta Was this translation helpful? Give feedback.
-
@coolsam7486 Can you give a bit more details how to do it in superset_config? |
Beta Was this translation helpful? Give feedback.
-
Currently no docs exist for creating a role programmatically - it's only via the UI. Is there any way via which we can create a new role or update the existing role programmatically ?
Beta Was this translation helpful? Give feedback.
All reactions