question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any way to manage(add) users at a large scale?

See original GitHub issue

Is 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

  1. 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).

  2. 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 Email 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dpgasparcommented, Sep 22, 2020

@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

1reaction
mistercrunchcommented, Sep 22, 2020

You can also do it through the ORM

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Management in 2022 and Beyond: A Complete Guide
This allows administrators to manage large numbers of users, allocating each user the appropriate permission based on their role. For example, ...
Read more >
How do large scale permission systems work with ...
Let's say you have a permission system with which you can specify things like: user U is a member of group A, which...
Read more >
Tools for advertisers with multiple or large accounts
Scale and efficiency tools · Edit campaign settings in bulk: Use bulk editing to update settings like location, language, ad rotation, and more....
Read more >
Adding or Removing Additional Users to an Index Smart Scale
Open the Garmin Connect app. · Open the menu. Android: Select (top left). iOS: Select More (bottom right) · Select Garmin Devices. ·...
Read more >
Manage large teams in Microsoft Teams - best practices
Use contact groups, security groups, or Office groups to jump start your team. You can import a group to make a team or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found