What is the role solution for RBAC?

Source: Internet
Author: User
What is the role solution for RBAC? In RBAC, roles are not very understandable. for example, sales managers and Jinan sales managers are vague.

I am talking about the sales manager, but it does not indicate the region.

It's very specific. it's about Jinan.

I would like to ask whether the role is specific or vague. because the sales managers in all districts share the same permissions, the role of the sales manager is set up to uniformly authorize the sales managers in all regions, you cannot create a sales manager role in one region.

Role positioning? In this case, how do I create a role permission scheme?

No one answered, http://zhi.hu/7dCn

No one answered SegmentFault, http://segmentfault.com/q/1010000000650304.

For help ............

It's been a lot of days ,........


Reply to discussion (solution)

This is not the same as membership permissions. it depends on how you design permissions.
First, the sales manager has the same permissions, regardless of the location.
You only need the sales manager permission group.
Type 2: Sales managers have the same permissions, but different regions have different permissions.
The sales manager is like a base class. the Jinan sales manager inherits the sales manager and gives birth to other separate permissions.
The design of the database is like the second-level navigation. the superior of the Jinan sales manager is the sales manager.

This is not the same as membership permissions. it depends on how you design permissions.
First, the sales manager has the same permissions, regardless of the location.
You only need the sales manager permission group.
Type 2: Sales managers have the same permissions, but different regions have different permissions.
The sales manager is like a base class. the Jinan sales manager inherits the sales manager and gives birth to other separate permissions.
The design of the database is like the second-level navigation. the superior of the Jinan sales manager is the sales manager.


....

, Permission group? The sales manager in each region has the same functional permissions. when the data permissions are different

, If all are inherited, how many roles should be created? add a partition to create a role ,...

Thank you for your answer ,.. In fact, I want to figure out how to design roles, data permissions, functional permissions, and so on.

After all, to create a sales department in a region, the sales manager has the same functional permissions, that is, the data permissions are different. he only has the sales manager permission for the personnel in the region ..

In fact, there is another serious problem...


One person manages multiple departments and holds different positions... Permission group, which cannot be solved

Is the following method feasible?
Department table rank table management relationship table personnel table
Id name pid id Department id name position id
1 Sales Department 1 Sales Manager 1 1 1 1 administrator 1 2
2 Management Department 2 management personnel 2 2 1 3
3 Collection Department
Administrator 1 finds him as a management department based on the position id, then goes to the management relationship table to find the department he managed. it can be seen that he manages the sales department and collection department.

What is WYSIWYG? Okay, you can copy it out.

Only a role has a region attribute.

A role is a character in the drama played by an actor. it is also a metaphor for a certain type of character in life and the professional division of labor of the opera actor.
Role of RBAC belongs to the category of professional division of labor.

A role, such as a sales manager, has specific permissions.
This is abstract

In reality, a single role can be played by multiple people; a single person can also play multiple roles.
These are irrelevant to the program. The program only recognizes roles rather than people.

A role is a character in the drama played by an actor. it is also a metaphor for a certain type of character in life and the professional division of labor of the opera actor.
Role of RBAC belongs to the category of professional division of labor.

A role, such as a sales manager, has specific permissions.
This is abstract

In reality, a single role can be played by multiple people; a single person can also play multiple roles.
These are irrelevant to the program. The program only recognizes roles rather than people.



The sales manager is abstract. what about the sales manager in Jinan? Is it abstract?

In the system, this type cannot be designed,

All sales managers are divided by functions, that is, the management area is disconnected. is this solved by roles?



Only a role has a region attribute.



What region attributes does the role add ??

?? So how to design a user role ???,,

Is the following method feasible?
Department table rank table management relationship table personnel table
Id name pid id Department id name position id
1 Sales Department 1 Sales Manager 1 1 1 1 administrator 1 2
2 Management Department 2 management personnel 2 2 1 3
3 Collection Department
Administrator 1 finds him as a management department based on the position id, then goes to the management relationship table to find the department he managed. it can be seen that he manages the sales department and collection department.



This cannot be done ,..

There is only a sales manager in the system, and there is no sales manager in Jinan.
The so-called Jinan sales manager only appears as a sales manager for a user registered in Jinan.

Roles are set according to business needs. you need to specify someone (some people) to act as a role.

Create a role "region manager" and assign the role dynamic resource access permissions for the corresponding region. Then, you can assign the "region manager" and "sales manager" roles to the user at the same time.

Roles and permissions.
[Use case]
After creating an account for User A, the system administrator sets the sales manager role for user A and gives him the permission to "view data in A region". Therefore, the sales manager of A region was born.

Of course, if the roles of sales managers in various regions share many commonalities, you can set up a sales group, assign them to the sales roles, and grant them the common permissions. When a sales manager in another region joins the system, you only need to join the sales group. This makes the administrator configuration easier.

Roles and permissions.
[Use case]
After creating an account for User A, the system administrator sets the sales manager role for user A and gives him the permission to "view data in A region". Therefore, the sales manager of A region was born.

Of course, if the roles of sales managers in various regions share many commonalities, you can set up a sales group, assign them to the sales roles, and grant them the common permissions. When a sales manager in another region joins the system, you only need to join the sales group. This makes the administrator configuration easier.



Not much. thank you. you are the moderator. I will read an article for you to help me see what the last half means.

Http://kb.cnblogs.com/page/44144/

Lz, listen to advice, calm down and think about it. the simpler the permission design, the better ..

It is best to separate role management, function management, and upper-and lower-level management permissions. This means that even if he is only a bottom-layer salesperson, he can have all the functions and manage a large number of organizations at any time, instead of being unable to adjust his role!

Lz, listen to advice, calm down and think about it. the simpler the permission design, the better ..

It is best to separate role management, function management, and upper-and lower-level management permissions. This means that even if he is only a bottom-layer salesperson, he can have all the functions and manage a large number of organizations at any time, instead of being unable to adjust his role!




Well, what you said is really good. I have a bit of doubt that I am confused. I have been thinking for many days.

Lz, listen to advice, calm down and think about it. the simpler the permission design, the better ..

It is best to separate role management, function management, and upper-and lower-level management permissions. This means that even if he is only a bottom-layer salesperson, he can have all the functions and manage a large number of organizations at any time, instead of being unable to adjust his role!



Absolutely correct!
After the product is put into use, there will be a variety of strange requirements, so the simpler the more flexible the better

Permissions are not as complex as you think
1. a recursive tree is sufficient for the data model.
2. for businesses, you only need to quickly extract permissions and assign nodes in the tree to users.

Thank you for your speech. I will discuss this question further.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.