Django Development. User access control api


Download 81.55 Kb.
Sana24.12.2022
Hajmi81.55 Kb.
#1064721
Bog'liq
shok documentation to understand (2)


Django Development.

User access control API

There are totally 5 types of Users:


  1. Super Admin: This is the main user who can see all the users and create as many users as possible below i.e. (2,3,4,5).

Can Create/Import Contact




  1. Agent user the one who can create many Customer

Agent can Create /Import Contacts


  1. Customer

Customer can create /Import contacts, Employees and Visitors


  1. Employees

Can create Contacts /Import Contacts


  1. Visitors






Every user will have User type definition


Every user gets subdomain and can be disabled by the access control of the master user of the user.

So, for example if the user is customer, then agent can disable customer and customer can disable visitor and admin can disable any user.

Hierarchy Defined Example below:

Super Admin: Hugo’s Labs [The Company the Creator Grant Owner]

Master Domain: Hugoslabs.com

Admin Creates 4 Agents who Manage 4 customers for each Region.

Agent 1:
Name: Andy Roberts California Agent 1
User Type: Agent

Location: San Francisco


Responsible to Manage 4 local stores for the assigned area and creates 3 stores after logging into the system, First California Agent 1 creates for users
Creates Customer Store 1:
Name Macy
User Type: Customer
Subdomain Creation Option Selected [ Yes]: Macys.Hugoslabs.com

The system automatically/based on user preference creates Subdomain


Macys.hugoslabs.com, after creation adds 4 of his customers as listed below in the system. Customer type users cannot create Agent or Super Admin or other customers.

(User): Macy Store Owner Can do following




  1. User Macy Clothing Store

Can create as many Sub-User that is
Employees

User Macys can create Many Employees



Visitors
Macy’s users can create many visitors


  1. Create/Import Contacts



  1. Create/Import
    Products



  1. Create/Upload Documents/Photos /Videos Media Items



  1. Create Kiosk and assign 3,4 items from above.

Creation of Kiosk can be made Private or Public.

Example Macy may want some employee videos assigned to Kiosk to be shared only with Employees and for the store visitors to view any kiosk that are not private.


  1. Macy can Share 4#, 5# with 2# that is with contacts media items and kiosks can be shared.

Macys has two types of Logins

  1. Admin.hugoslabs.com where they can make administrative functions and activities like creating contacts, kiosks etc.

  2. Macys.hugoslabs.com

Where all the kiosks with respective names are displayed.
Note: Administrative login is common for all users even Employees, Visitors can view Kiosks and upload Documents.
Similar functions can be repeated by Store 2…4
Creates Customer Store 2:
(User): Food Store
Can create as many Sub-User that is
Employees

Visitors
Can view only Kiosks and upload Documents

Creates Customer Store 3:
(User): Trader Bob Juice

Super Admin: Hugo’s Labs [The Company the Creator Grant Owner]



Agent 2:
Name: California Agent2

Location: Sacramento


Responsible to Manage 4 stores and logs into system and users
Creates Customer Store 1:
(User): JcPenny Shits
Creates Customer Store 2:
(User): Apple Fruits Store
Creates Customer Store 3:
(User): Trader Jessica Juice
Super Admin: Hugo’s Labs [The Company the Creator Grant Owner]

Agent 3:
Name: California Agent3

Location: San Jose


Responsible to Manage 4 stores and logs into system and users
Creates Customer Store 1:
(User): Andrea Swim Dress
Creates Customer Store 2:
(User): Chochlate Store
Creates Customer Store 3:
(User): Brandon furniture

Agent 4:
Name: California Agent4

Location: Hollywood


Responsible to Manage 4 stores and logs into system and users
Creates Customer Store 1:
(User): Hollywood Dresses
Creates Customer Store 2:
(User): Actor Gift Store
Creates Customer Store 3:
(User): Actor Restaurant

Download 81.55 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling