-
Notifications
You must be signed in to change notification settings - Fork 1
Multi Tenancy
Binod edited this page Mar 12, 2019
·
7 revisions
Different Companies/Sites/Users share different level of roles for giving different layer of permissions. And those roles are as follows:
- Super Admin
- Admin
- Manager
- User
- Guest
Fig (1): Multi-Tenant Architecture
We can view the architecture from two different angle: A. Company B. User
A. Company
Company wise, we categories three level of companies.
1. Super Admin
-
Super Adminis us at Nube iO
2. Admin
-
Adminis the Nube iO client (Vendor) - Associates on
Super Admincompany
3. Manager
-
Manageris our client’s client - Associates on
Admincompany
B. User
1. Super Admin
-
Super Adminuser is the user which is associated withSuper Admincompany and has roleSuper Admin - User with role
Super Adminhas allread/write/deletefor its child descendants on the hierarchy and canread/write(partial)own values
2. Admin
- Associates with it's respective company having role
Admin - User with role
Adminhas allread/write/deletefor its child descendants on the hierarchy and canread/write(partial)own values
3. Manager
- Associates with
Admincompany with roleManager - User with role
Managerhas allread/write/deletefor its child descendants on the hierarchy and canread/write(partial)own values
4. User
-
Userswill typically have read and write permissions - Associates with
Managercompany with roleUser - Limited on
read/write(partial)own values
5. Guest
-
Guestswill typically only have read permissions - Associates with
Managercompany with roleGuest - Limited on
read/write(partial)own values
To achieve that requirements we have following schemas:
- company
- site
- user
- user_group