Allow multiple users to register with an organization
See original GitHub issueNew flow:
- If there are no users on the instance, I am shown the register page (because of checking
hasUsers
on the health endpoint) - After that I’m shown the login page (how it works now)
- However, you can manually navigate to
/register
without being redirected - You can create a new user with an organization
after this it should still not be possible for a user to be in two organizations since users are only associated with orgs when the user is created (via invite code or via registering)
Introduce a new environment variable:
ALLOW_MULTIPLE_ORGS=true
which defaults to false
When creating an org, we should check if there is an existing org and whether multiple orgs are allowed.
Registering as a new user
Replace registerInitialUser
with registerNewUserWithOrg
Currently used on POST /register
- this should not be restricted to only a single user. Many people can register to use Lightdash.
All users that register this way will get their own organization
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Add users and assign licenses in Microsoft 365
Go to Users > Active users, and select Add multiple users. On the Add list of user page, choose whether to add user's...
Read more >Add multiple users to an organization - Contrast Documentation
Field name Required Value
First Name Required User first name
Last Name Required User last name
Organization Role Required Values can be View , Edit ,...
Read more >Options for adding users - Google Workspace Admin Help
For people in your organization to use your Google Workspace services, you must give each person a user account and a Google Workspace...
Read more >Add users to Organizations and Workspaces - Help Center
With a Plus or higher account, you can give multiple users access to your Organization and Workspaces so they can collaborate on your...
Read more >Adding users to the Shopify organization admin
To give accesses without using a role, select Select custom access, and then add organization-level accesses and store-level accesses. Optional: To change two- ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah bin it!
That works if we don’t mind people filling up a form to get an error.
We also need to:
needsSetup
returned by the health endpoint. Which currently controls when the register page is available and when to redirect to the register page.