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.

Allow multiple users to register with an organization

See original GitHub issue

New 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

https://github.com/lightdash/lightdash/blob/7745f86b414c9e07aa83de53d5ae7fd5f1c4d3a0/packages/backend/src/services/UserService.ts#L450-L450

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PriPatelcommented, May 13, 2022

Yeah bin it!

1reaction
ZeRegocommented, May 13, 2022

That works if we don’t mind people filling up a form to get an error.

We also need to:

  • delete every use of needsSetup returned by the health endpoint. Which currently controls when the register page is available and when to redirect to the register page.
  • delete/update the welcome page. I don’t think this page makes sense anymore. 🤔 @PriPatel
Read more comments on GitHub >

github_iconTop 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 >

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