Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Columns - Tenancy #21

Open
bazooka720 opened this issue Dec 21, 2023 · 5 comments
Open

Multiple Columns - Tenancy #21

bazooka720 opened this issue Dec 21, 2023 · 5 comments

Comments

@bazooka720
Copy link

Is it possible to allow tenancy that is based on more than 1 column ? This will significantly enhance capability

@hoppergee
Copy link
Owner

Could you offer more details about the multiple columns which can help me to dig deeper?

@bazooka720
Copy link
Author

bazooka720 commented Dec 21, 2023

@hoppergee Thanks for getting back. Let's say we want tenancy established based on two attributes tenantID and clientID (assume scenario where each tenant may have multiple clients within). Ability to optionally allow scope to include more than one column can significantly enhance security

@hoppergee
Copy link
Owner

hoppergee commented Dec 21, 2023

This sounds like a nest tenant(Tenant and Sub-tenant). May I ask which should the current_tenant represent to? The Tenant or the Client?

Sorry, I'm not quit sure how to start, maybe you could give more suggestions? @bazooka720

@bazooka720
Copy link
Author

What if it's dependent on the user role? If the user is "client" type then current_tenant refers to company(subdomain)+client, else its just company

@bazooka720
Copy link
Author

@hoppergee thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants