i want create user with access (superadmin,admin, user1,user2 ,...) .for every user create permisstion (create , edit, report ,page 1,page 2 )
Actually,This requires database design (user management, role management) based on your needs and your team.
Different permissions are generally given by different roles.
So you could be sure that you want to create several roles.
Then talk about the role associated with the user.
For example:
role table:
RoleName RoleType
Superadmin 1
Admin 2
User 3
user table:
UserId UserName RoleType
1 user1 1 (Superadmin)
2 user2 2
(Admin)
3 user3 3 (User)
4 user4 3 (User)
5 user5 3 (User)
... ... ...
And then in your code,you could retrieve database and give CRUD function based on RoleType.
Best Regards.
Yuki Tao
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
38 Points
145 Posts
how to create user and role and permission and create relation between them .
Mar 05, 2019 05:46 AM|aabedeni056|LINK
hello .
i want create user with access (superadmin,admin, user1,user2 ,...) .for every user create permisstion (create , edit, report ,page 1,page 2 ) .
i dont know how to do .
help me please.
Contributor
3710 Points
1431 Posts
Re: how to create user and role and permission and create relation between them .
Mar 05, 2019 07:06 AM|Yuki Tao|LINK
Hi aabedeni056,
Actually,This requires database design (user management, role management) based on your needs and your team.
Different permissions are generally given by different roles.
So you could be sure that you want to create several roles.
Then talk about the role associated with the user.
For example:
role table:
RoleName RoleType
Superadmin 1
Admin 2
User 3
user table:
UserId UserName RoleType
1 user1 1 (Superadmin)
2 user2 2 (Admin)
3 user3 3 (User)
4 user4 3 (User)
5 user5 3 (User)
... ... ...
And then in your code,you could retrieve database and give CRUD function based on RoleType.
Best Regards.
Yuki Tao
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.