Is there a REST API for user CRUD in Superset? #23745
-
Is it possible to enable REST API for users in the URL(https://superset.apache.org/docs/api) even though I cannot find it currently? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
AFAIK it is not possible to CRUD users via Superset REST API. You can either create users via CLI Alternatively, you can use an OAuth Provider mentioned in the docs. |
Beta Was this translation helpful? Give feedback.
-
The underlying Security Management (including the above mentioned OAuth Provider!) in Superset is provided by Flask Application Builder (FAB). FAB has all the REST API for user CRUD, but they are not enabled by default in Superset. To enable this (beta) feature in Flask AppBuilder, you need to set the following configuration setting in your Superset configuration (Config setting. NOT Feature Flag):
Once configured, you can explore the documentation in Swagger: |
Beta Was this translation helpful? Give feedback.
-
For people who may want to do some role and user automations but don't want to turn security API on, you could use all these fab command lines. Specifically for creating roles in my case: |
Beta Was this translation helpful? Give feedback.
The underlying Security Management (including the above mentioned OAuth Provider!) in Superset is provided by Flask Application Builder (FAB).
FAB has all the REST API for user CRUD, but they are not enabled by default in Superset.
To enable this (beta) feature in Flask AppBuilder, you need to set the following configuration setting in your Superset configuration (Config setting. NOT Feature Flag):
Once configured, you can explore the documentation in Swagger: