Rbac permission control for the department Model

Source: Internet
Author: User
The general rbac operations are clearly understood. However, when I create a department model, there are multiple departments in my business. There are multiple groups under the department, and there are many operations under the department and the group. How to separate these permissions? There is only one of these operations, but the IDs of different departments or groups are used to distinguish between common rbac operations. However, when I create a department model, there are multiple departments in my business. There are multiple groups under the department, and there are many operations under the department and the group. How to separate these permissions?

There is only one such operation, but the IDs of departments or groups are used to differentiate different departments. In this way, how do I grant permissions by id in rbac?

Reply content:

The general rbac operations are clearly understood. However, when I create a department model, there are multiple departments in my business. There are multiple groups under the department, and there are many operations under the department and the group. How to separate these permissions?

There is only one such operation, but the IDs of departments or groups are used to differentiate different departments. In this way, how do I grant permissions by id in rbac?

RBAC is based on "Roles". All authorization objects are "Roles", rather than other departments or other IDs. The personnel in these departments and groups are organized as "Roles 」, or create a department/group and role correspondence, and then authorize.

Assume thatDepartment ManagerSuch a role

  • In Department,Department ManagerOperate the transactions of department

  • In Department B,Department ManagerOperate the transactions of department B

If we follow the general practice, we will designDepartment A managerAndDepartment B ManagerOnly two roles can be distinguished. Therefore, I think there is still a problem of Operation granularity.

In the RBAC model,PermissionThe general understanding is:Resource : Operation : InstanceBut I think it can be correctedResource : Operation : DomainThe Domain here refers to the Domain that is used. It can be an Organization (Department), a certain scope (Mine, Others), or an Instance ), each Domain is a dimension, and the authentication permission must be verifiedResource : OperationThe string needs to be verified separately in various dimensions. It seems that there is no framework to do this.

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.