Replies: 2 comments 4 replies
-
Hi @akudjawu, The AuthP library provides a feature known as "Setup the “sign up / versioning” which adds tenant roles when creating a tenant. This allows a user to select the right balance of features against the price. The article "Multi-tenant apps with different versions can increase your profits" shows how you can create tenants with different Roles (see this section in the article). But the limitation is that the |
Beta Was this translation helpful? Give feedback.
-
HI @akudjawu, I said in my last comment that tenant roles are only be added when creating a new tenant, so you can't add new tenant roles to an existing tenant. This was done for the the "sign up / versioning" feature. Also the design assumes that tenant admins CANNOT create Roles. That's because the person who creates a Role has access to all the Permissions, which allow a user to to gain access to features such as deleting a tenant, read another tenant's data etc. So, in my examples only a app admin can create Roles. As I said before, tell me what type of of multi-tenant application you are trying to create and I will see if I can find any suggestions. I can't quite see why you want to create a multi-tenant app which gives tenant admins too much power. This design of the AuthP is to allow a tenant admin to control the user in their tenant via the Roles that the app admin or "sign up / versioning" provides. |
Beta Was this translation helpful? Give feedback.
-
Hi @JonPSmith
I am currently working on a SaaS application where multiple tenants, such as Tenant A and Tenant B, have their own distinct sets of roles. My objective is to ensure that each tenant can only access and manage their own set of roles, while preventing them from viewing or accessing roles belonging to other tenants.
Tenant A -
- Role A
- Role B
- Role C
Tenant B -
- Role Y
- Role E
- Role C
Can I please archive this with current version of AuthP
I have actually tried but it, if I create any role with the RoleType => Normal it shows everywhere and I see a schema table RoleToPermissionTenant but no data is stored
Beta Was this translation helpful? Give feedback.
All reactions