open-source-saas-boilerpate icon indicating copy to clipboard operation
open-source-saas-boilerpate copied to clipboard

[Feature Request] Teams/Companies and RBAC

Open mattp95 opened this issue 5 years ago • 4 comments

Hi there,

Have you considered moving permissions to the principle of a company and multiple users being a member of that company in the capacity of a given role.

For example Joe is the 'owner' of company 1 and company 2, Jane is a manager in company 1, Josie is an accounts person who needs billing only access to company 2. The owner can assign roles to users within that company. The company can be renamed ect.

mattp95 avatar Dec 18 '19 12:12 mattp95

Not sure that I understand you. What is the "company" and how it's related to the SaaS project?

saasforge avatar Dec 18 '19 20:12 saasforge

The 'Company' is a customer of the SAAS Provider, for B2B saas rather than B2C (i.e a user is a customer of the SAAS Provider.

Within that RBAC, so that at accounts person can access billing page only, CEO can access all parts.

mattp95 avatar Dec 25 '19 17:12 mattp95

For Example in these projects you can see how it is implemeneted: https://saasstartupkit.com/examples/app/users https://github.com/staart/api https://github.com/archonic/limestone-accounts

mattp95 avatar Dec 25 '19 18:12 mattp95

Great, thanks! Will definitely consider adding this feature.

saasforge avatar Dec 25 '19 18:12 saasforge