K
Kinde13mo ago
Martin

Matching Users to Organisations

I'm working on an auth solution for my application. I'm expecting users from multiple different Organisations to register for my application. Is there a way to automatically assign new users to the correct Organisation based on their email domain? All I've been able to find is the ability to manually assign users to Organisations in the Kinde dashboard.
4 Replies
Martin
MartinOP13mo ago
Or is this something which I'd need to implement myself on the backend using the Kinde API? It looks like I could do this using https://kinde.com/api/docs/#add-organization-users.
VKinde
VKinde13mo ago
Currently I believe this can all be done with the API on the backend, but including this in the dashboard is a cool idea. I'll bring this up with the team!
Martin
MartinOP13mo ago
Kinde Docs
Kinde organizations for developers - Build on Kinde - Help center
Our developer tools provide everything you need to get started with Kinde.
Oli - Kinde
Oli - Kinde13mo ago
Hey @Martin, As you mentioned above, at the moment to achieve this you would have to implement logic on your end to determine which organisation a user should sign-up to based on their email domain. Once you know this, you could create the user via API: https://kinde.com/api/docs/#add-organization-users. Or, they could self sign-up to that organization - see the following guide: https://kinde.com/docs/build/orgs-for-developers/#signing-up-new-users-into-an-existing-organization I have noted down your request to "automatically assign new users to the correct Organisation based on their email domain".
Kinde Docs
Kinde organizations for developers - Build on Kinde - Help center
Our developer tools provide everything you need to get started with Kinde.
Want results from more Discord servers?
Add your server