multi-tenant-support icon indicating copy to clipboard operation
multi-tenant-support copied to clipboard

Multiple Columns - Tenancy

Open bazooka720 opened this issue 1 year ago • 5 comments

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

bazooka720 avatar Dec 21 '23 14:12 bazooka720

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

hoppergee avatar Dec 21 '23 15:12 hoppergee

@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

bazooka720 avatar Dec 21 '23 15:12 bazooka720

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

hoppergee avatar Dec 21 '23 16:12 hoppergee

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 avatar Dec 21 '23 17:12 bazooka720

@hoppergee thoughts?

bazooka720 avatar Dec 22 '23 13:12 bazooka720