Is there any way to manage(add) users at a large scale?
See original GitHub issueIs your feature request related to a problem? Please describe.
It is easy and user-friendly to add a user via List Users
page. I suppose the command superset fab createuser
will achieve the same goal with a prompt. But I’m frustrated when I try to create a batch of users. For example, I want to add four different users as public role with default password. Repeatedly filling forms is not a good idea.
I guess the user management is related to .superset\superset.db
. Connect to the database and insert values should do the job.
Describe the solution you’d like
-
An admin user could download a sample csv/xlsx(with header). The admin will fill the table or write some code snippets to generate the correct csv/xlsx(with header).
-
The admin upload the csv through a superset page. After the process of the csv, the page is refreshed and lists all the users(or part of it with
N users in total are created
message printed).
e.g.
First Name | Last Name | User Name | Active | Role | Password | |
---|---|---|---|---|---|---|
Frank | Scarlet | Scarlet | 1 | hferfrank@gmail.com | Public | P@ssword |
Describe alternatives you’ve considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
@FrankScarlet,
Like @mistercrunch suggested you can use SQLAlchemy (ORM) to create user’s with multiple roles, here’s what the cli is calling behind the scenes: https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/sqla/manager.py#L185
You can also do it through the ORM