KindeK
Kinde7mo ago
4 replies
Adam Tkaczyk

Multi-tenancy setup and user changing the email

Context: I’m building a multi-tenancy, white-label app. It's an education platform, B2B2C model. I have a platform, where creators (mentors, teachers) can prepare a course. One teacher can have multiple courses. Students can have access to just part of them, but across many organisations (tenants). There is also a student portal, where students can login, if they are invited to (like edu.example1.com, med.example2.dev). I'm using NextJS.

The issue is: users in Kinde are global (per env). So in a scenario like this:
1. User is a student in Org1 (edu.example1.com)
2. User is also a student in Org2 (med.example2.dev)
3. User would like to change the email for Org1
(!) but the email will be changed for both tenants, right? That's the problem. In my case, users should be fully separated per each tenant. Changing email/password in one instance shouldn't affect the other. Does Kinde support it? Any idea how to solve it?
Was this page helpful?