User authority management method and device, equipment and storage medium
By introducing user groups and permission directories into the permission management system, user permissions can be dynamically adjusted, solving the problem that role-based permission access control technology cannot be dynamically adjusted, improving user experience and system stability, and realizing the control of multiple user permissions. Batch updates.
Patent Information
- Application Number
- CN202411188208.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing role-based permission access control technology cannot dynamically adjust user permissions, resulting in inconvenient user permission management, and the granularity of permission objects is coarse, making it impossible to effectively manage multiple permission object combinations in the system.
Introduce user group objects into the permission management system. User groups contain permission directories and role attributes, and support dynamic adjustment of permissions. Users can update multiple user permissions in batches through user group and role association.
It improves the user experience of the permission management system, enhances the stability and data security of the system, supports dynamic permission management, and reduces the inconvenience caused by the expansion or reduction of the scope of permissions.
Smart Images

Figure CN118709174A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of Internet, and in particular to a user authority management method, apparatus, device and storage medium. Background Art
[0002] To prevent system stability and data security from being affected by incorrect operations, storage vendors all have permission management functions, usually role-based access control (RBAC). Role-based access control technology is widely used in various systems. This technology model is as follows: Figure 1 As shown in the figure, each role has fixed permissions. When creating a user, the user is associated with a role, so that the user indirectly has the permissions of the associated role. After the user logs in to the system, before performing any operation, it will first check whether it has the permission for the operation. Only if it has the permission can the operation be performed, otherwise an error will be returned.
[0003] However, since the permissions of roles are fixed and do not support dynamic adjustment, if you want to increase or decrease permissions for a user, you can only delete the user and rebuild it, or change the role associated with the user. This may result in the granting of permissions that the user does not want and the deprivation of permissions that the user wants, reducing the user's experience of using the system. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a user rights management method, apparatus, device and storage medium. The specific technical solutions are as follows: In a first aspect of the present invention, a user rights management method is provided, which is applied to a rights management system, wherein the rights management system includes a plurality of rights directories, each of which has a corresponding rights object, and the rights management system includes a plurality of roles, wherein the method includes: Creating a first user group to be associated; wherein the first user group to be associated includes a role and permission directory; Selecting a target role from the roles of the first user group to be associated; Determine a target permission directory from the permission directory of the first user group to be associated to obtain a user group; After the user is associated with the user group, the user is used to access the permission object in the permission management system according to the permission directory corresponding to the associated user group.
[0005] In a second aspect of the present invention, a user rights management device is provided, which is applied to a rights management system, wherein the rights management system includes a plurality of rights directories, each of which has a corresponding rights object, and the rights management system includes a plurality of roles. The device includes: A module for creating a user group to be associated, used to create a first user group to be associated; wherein the first user group to be associated includes a role and permission directory; A role selection module, used for selecting a target role from the roles of the first user group to be associated; A permission directory setting module, used to determine a target permission directory from the permission directory of the first user group to be associated to obtain a user group; The rights management system access module is used for, after a user is associated with the user group, for the user to access the rights object in the rights management system according to the rights directory corresponding to the associated user group.
[0006] In a third aspect of the implementation of the present invention, there is also provided a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; The processor is used to read the program in the memory to implement the user authority management method as described in any one of the first aspects.
[0007] In a fourth aspect of the implementation of the present invention, a computer-readable storage medium is further provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer implements the user authority management method as described in any one of the first aspects.
[0008] In a fifth aspect of the implementation of the present invention, a computer program product is also provided, including a computer program / instruction, which, when executed by a processor, implements the user authority management method as described in any one of the first aspects.
[0009] The embodiment of the present invention is applied to a rights management system. The rights management system may include multiple rights directories, each of which has corresponding rights objects. The rights management system includes multiple roles, and a first user group to be associated is created; wherein the first user group to be associated includes roles and rights directories, a target role is selected from multiple roles of the first user group to be associated, and a target rights directory is determined from multiple rights directories of the first user group to be associated, and a user group is obtained. In this way, if a user is associated with any user group, the user can access the rights objects in the rights management system according to the rights directory corresponding to the associated user group. The embodiment of the present invention adds a user group on the basis of the original role-based rights control of the rights management system. The user group has two attributes, rights directory and role. wherein the rights directory is used to manage the rights of the corresponding user group to each right object in the rights management system, supports dynamic adjustment, and the role is no longer directly associated with the user. The user is associated through the user group and the role. By managing rights through the user group, the rights of multiple users can be quickly updated in batches without modifying the rights of the users one by one, thereby improving the user experience of the rights management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a module diagram of role-based permission access control technology; Figure 2 It is a flowchart of role-based permission access control technology; Figure 3 It is a flowchart of the steps of a user rights management method provided by an embodiment of the present invention; Figure 4 It is a schematic diagram of a process for specifying authority directory information provided in an embodiment of the present invention; Figure 5 A schematic diagram of a process of deleting a user group provided in an embodiment of the present invention; Figure 6 is a flow chart of a user access rights management system provided in an embodiment of the present invention; Figure 7 It is a structural diagram of a user rights management method and device provided by an embodiment of the present invention; Figure 8 It is a schematic diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0011] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable the reader to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can be implemented. The division of the following embodiments is for the convenience of description and should not be construed as limiting the specific implementation of the present invention.
[0012] Among the relevant technical solutions, most current manufacturers' rights management has the following problems: 1) The permissions of roles are fixed and cannot be adjusted dynamically, which brings inconvenience to users; 2) CLI (Command Line Interface) and GUI (Graphical User Interface) do not display and restrict operations of corresponding permission objects according to the permissions of the logged-in user. Therefore, it is very necessary to design a permission management system that can dynamically adjust permissions.
[0013] Reference Figure 2In a related technical solution, the permission management of most storage vendors is based on the RBAC model. Specifically, the RBAC model is to build several roles into the storage system, each role has fixed permissions; when creating a user, the user is associated with the role; after the user logs in to the system (through the CLI or GUI), the user's permissions are checked before performing any operation. If the user has the permission, the operation continues, otherwise an error is returned.
[0014] The defects of the current related technical solutions are: 1) Role permissions are fixed and do not support dynamic adjustment. If you want to increase or decrease permissions for a user, you can only delete the user and recreate it, or change the user-associated role, which may result in unwanted permissions being granted and wanted permissions being deprived, thus expanding or reducing the scope of permissions.
[0015] 2) Role-based permission management: The granularity of the permission objects it manages is too coarse, and it is impossible to manage all the permission objects in the system within a limited number of roles. There are many permission objects in the storage system, and these permission objects will generate many combinations of permission objects. If these permission object combinations are still managed based on roles, there will be many roles to define; and as the storage system evolves, more and more new permission objects will be added to the permission management system.
[0016] In view of the above problems, an embodiment of the present invention proposes a method for implementing user authority management. Based on the original role-based authority control of the authority management system, a user group object (user group) is added. The user group has two attributes: a permission list (permission directory) and a role. The permission item is used to manage the user group's authority to each permission object in the authority management system, and the permission directory supports dynamic adjustment. The role is no longer directly associated with the user, and the user can be associated through the user group and the role.
[0017] 1) Classify all permission objects in the permission management system to form different permission directories and permission objects under the permission directories; 2) In addition to the several built-in roles originally defined in the permission management system, a user-defined role has been added; 3) Users are associated with user groups, and user groups are associated with roles. When the role of a user group is a built-in role, the information of its permission directory cannot be modified. When it is a user-defined role, the information of its permission directory can be dynamically adjusted.
[0018] Reference Figure 3, shows a flowchart of the steps of a user authority management method provided by an embodiment of the present invention, which is applied to an authority management system, the authority management system includes multiple authority directories, the authority directories respectively have corresponding authority objects, the authority management system includes multiple roles, and the method may include: Step 301: Create a first user group to be associated; wherein the first user group to be associated includes a role and permission directory.
[0019] Exemplarily, the permission management system may include but is not limited to storage systems, servers, large databases, security gateways, cloud services, etc. Incorporating the embodiments of the present invention into the above-mentioned permission management systems can increase the richness of the permission management of these systems, as well as enhance the stability of the system and the security of the data.
[0020] The embodiment of the present invention is a dynamic permission management added to the permission management system on the basis of role-based permission management, and the original role-based permission management is used as static permission management. Specifically, for static permission management, multiple roles are built-in in the permission management system, and there is a list of commands that each role can execute. Exemplarily, as shown in Table 1 below, the built-in roles may include Monitor (monitoring administrator), CopyOperator (disaster recovery administrator), Service (service administrator) and Administrator (super administrator), and different built-in roles may have different permissions.
[0021] Table 1:
[0022] In the embodiment of the present invention, in addition to the built-in roles, there is also a UserDefined role in the authority management system, that is, a user-defined role, and the static permissions of the user-defined role are the same as those of Administrator (super administrator).
[0023] For dynamic permission management, the permission objects in the permission management system can be counted and classified in advance, thereby dividing into multiple permission directories, each of which has corresponding permission objects. Specifically, a permission object is a specific entity or resource that is granted specific permissions in the permission management system, such as Pool, Mdisk, Drive, Migrate, etc. For example, the following Table 2 shows some permission directories and the permission objects they contain: Table 2:
[0024] In addition, there are multiple values for the permissions of each permission object. Exemplarily, referring to Table 3, there are four values for the permissions of each permission object, such as no permission, read-only permission, read-write permission, and incremental permission.
[0025] Table 3:
[0026] In the embodiment of the present invention, for a user group with built-in roles, the permissions of its permission objects are determined and cannot be modified. For example, see Table 4: Table 4:
[0027] In the embodiment of the present invention, refer to Figure 4 , is a flow chart of specifying permission directory information provided in an embodiment of the present invention. When a user group needs to be created, an empty user group to be associated (a first user group to be associated) can be created first, so that subsequent users can specify permission directory information for the user group to be associated according to actual needs, that is, associate permission directories and roles, and set the values of permissions of permission directories, etc. When creating a user group, it is necessary to select a role. If the selected role is a built-in role, it is prohibited to specify permission directory information, and the permission directory and permissions corresponding to the built-in role will be automatically set when creating the user group; if the selected role is a user-defined role, it is necessary to specify permission directory information.
[0028] Step 302: Select a target role from the roles of the first user group to be associated.
[0029] In an embodiment of the present invention, a user can select a target role for the first user group to be associated according to actual needs. For example, it can be a user-defined role or a built-in role. The authority management system responds to the user's selection operation on the role of the first user group to be associated and can use the role selected by the user as the target role. For example, if the user selects the built-in role Monitor, the built-in role Monitor can be used as the target role.
[0030] Step 303: Determine a target authority directory from the authority directory of the first user group to be associated to obtain a user group.
[0031] In an embodiment of the present invention, after selecting the role of the user group to be associated, the target permission directory can be further determined from multiple permission directories of the user group to be associated, and the permissions of the target permission directory can be determined. Then, after the target role and target permission directory of the user group to be associated are selected, the user group can be obtained and saved in the permission management system. The user can subsequently associate one or more other users with the user group according to actual needs, and the permissions of multiple users can be quickly updated in batches without modifying the permissions of the users one by one, thereby improving the user experience of the permission management system.
[0032] Step 304: After the user is associated with the user group, the user is used to access the permission object in the permission management system according to the permission directory corresponding to the associated user group.
[0033] After a user is associated with a user group, when the user logs into the permission management system, the user can access the permission objects in the permission management system according to the permission directory corresponding to the user group associated with the user.
[0034] The embodiment of the present invention is applied to a rights management system. The rights management system may include multiple rights directories, each of which has corresponding rights objects. The rights management system includes multiple roles, and a first user group to be associated is created; wherein the first user group to be associated includes roles and rights directories, a target role is selected from multiple roles of the first user group to be associated, and a target rights directory is determined from multiple rights directories of the first user group to be associated, and a user group is obtained. In this way, if a user is associated with any user group, the user can access the rights objects in the rights management system according to the rights directory corresponding to the associated user group. The embodiment of the present invention adds a user group on the basis of the original role-based rights control of the rights management system. The user group has two attributes, rights directory and role. wherein the rights directory is used to manage the rights of the corresponding user group to each right object in the rights management system, supports dynamic adjustment, and the role is no longer directly associated with the user. The user is associated through the user group and the role. By managing rights through the user group, the rights of multiple users can be quickly updated in batches without modifying the rights of the users one by one, thereby improving the user experience of the rights management system.
[0035] In one embodiment of the present invention, the method may further include: All the permission objects in the permission management system are classified to form a plurality of permission directories; wherein the permission directories respectively have corresponding permission objects.
[0036] In an embodiment of the present invention, before creating a user group or associating a user group, it is necessary to count and classify all permission objects in the permission management system to form multiple permission directories, and each permission directory has a corresponding permission object, which reduces the management granularity of the permission objects in the permission management system. In this way, when associating the user group to be associated with the permission directory, it can be directly associated according to the required permission directory, which improves the association efficiency of the user group.
[0037] In an embodiment of the present invention, determining a target permission directory from the permission directory of the first user group to be associated to obtain a user group includes: When the target role is a user-defined role, in response to a setting operation on the permission directory of the first to-be-associated user group, a first target permission directory of the first to-be-associated user group is selected from the permission directory of the first to-be-associated user group to obtain a customized user group.
[0038] In an embodiment of the present invention, when the user selects the role of the user group to be associated, the user can select a built-in role or a user-defined role as the target role of the user group to be associated. When the target role selected by the user is a user-defined role, one or more permission directories can be further selected from multiple permission directories as the first target permission directory, and a user-defined user group can be obtained. For example, assuming that the permission directory of the user group to be associated can include user, pool, lun, and map, the user can select user and pool as the first target permission directory of the user group to be associated, and can set the permissions of user and pool to read-only, and a user-defined user group can be obtained.
[0039] In an embodiment of the present invention, determining a target permission directory from the permission directory of the first user group to be associated to obtain a user group includes: When the target role is a built-in role, the permission directory corresponding to the built-in role is used as the second target permission directory of the first user group to be associated to obtain a custom user group; the permission directory corresponding to the built-in role has corresponding permissions.
[0040] In an embodiment of the present invention, when the user selects the role of the user group to be associated, the user can select a built-in role or a user-defined role as the target role of the user group to be associated. When the user selects the target role of the user group to be associated as a built-in role, the permission directory information of the user group to be associated is automatically set based on the permission directory and permissions corresponding to the built-in role. For example, if the built-in role is Monitor (monitoring administrator), the permission directory user, pool, etc. corresponding to Monitor (monitoring administrator) in Table 4 can be obtained, and the permissions (read-only) of the permission directory user, pool, etc. can be set, and the user-defined user group can be obtained.
[0041] In one embodiment of the present invention, the method may further include: Creating a second user group to be associated for each built-in role; wherein the second user group to be associated includes a role and a permission directory; The permission directory corresponding to the built-in role is selected from the permission directory of the second user group to be associated, so as to obtain a built-in user group.
[0042] It should be noted that each built-in role in the permission management system will correspond to a built-in user group, which can be automatically created when the permission management system is initialized without the need for user creation. Specifically, the process of creating a built-in user group may include: creating a second user group to be associated (user group to be associated) for each built-in role, and then using the permission directory corresponding to the built-in role and the permissions corresponding to the permission target as the target permission directory of the second user group to be associated. For details, the permission directory and permissions corresponding to the built-in role in Table 4 can be referred to to obtain the built-in user group.
[0043] The name of the built-in user group can be the same as the built-in role, and the built-in user group cannot be deleted. For example, the built-in user groups shown in Table 5 can be referenced: Table 5:
[0044] In one embodiment of the present invention, the method further comprises: In response to a deletion operation on the user group, taking the user group corresponding to the deletion operation as a user group to be deleted; When the user group to be deleted is a built-in user group, deleting the user group to be deleted is prohibited.
[0045] In the embodiment of the present invention, the user may be allowed to delete the user group in the rights management system. Specifically, refer to Figure 5 , which is a flowchart of user group deletion provided in an embodiment of the present invention. In response to a deletion operation on a user group, the user group corresponding to the user deletion operation is used as a user group to be deleted. If the user group to be deleted is a built-in user group, the user will be prohibited from deleting it. At this time, the user can be prompted through the interface that the user group is a built-in user group and the deletion operation is prohibited.
[0046] In one embodiment of the present invention, the method further comprises: When the user group to be deleted is a custom user group, determining whether there is an associated user in the user group to be deleted; If there is no associated user in the user group to be deleted, the user group to be deleted is deleted.
[0047] In an embodiment of the present invention, if the user group to be deleted is a custom user group, the user can be allowed to delete the user group to be deleted. At this time, it is necessary to determine whether there are any associated users in the user group to be deleted. If there are no associated users in the user group to be deleted, the user group to be deleted can be directly deleted.
[0048] In one embodiment of the present invention, the method further comprises: If there are any associated users in the user group to be deleted, determining whether the role associated with the user group to be deleted is a built-in role; If the role associated with the to-be-deleted user group is a built-in role, the to-be-deleted user group is deleted, and all users associated with the to-be-deleted user group are switched to the built-in user group specified by the association; If the role associated with the to-be-deleted user group is a user-defined role, deleting the to-be-deleted user group is prohibited.
[0049] In an embodiment of the present invention, if the user group to be deleted is a user-defined user group and there are associated users in the user group to be deleted, there are two situations: the first situation: for the user-defined user group of the built-in user role, when deleting, the user groups of all users associated with the user group to be deleted will be switched to the specified built-in user group, wherein the specified built-in user group is the built-in user group with the lowest authority among all built-in user groups, for example, the built-in user group - Monitor, because Monitor has only read-only authority to all permission objects, so the problem of expanded authority will not occur; the second situation: the user group of the user-defined role is prohibited from being deleted.
[0050] In one embodiment of the present invention, after the user is associated with the user group, the user is used to access the permission object in the permission management system according to the permission directory corresponding to the associated user group, including: In response to an access command issued by a user to the authority management system, querying the authority of the role and authority directory corresponding to the user group associated with the user; The access command is processed according to the role corresponding to the user group associated with the user and the permissions of the permission directory.
[0051] Reference Figure 6 , is a flow chart of a user access permission management system provided in an embodiment of the present invention. After a user logs in to the permission management system, the role and permission directory of the user group to which the user belongs will be queried before executing a command (access command). Each command also has its own permission directory and permission object. Static permission check and dynamic permission check are performed respectively according to the role and permission directory of the user group to which the user belongs. Only after both the static permission check and the dynamic permission check are passed can the command body be executed in the permission management system.
[0052] In one embodiment of the present invention, the method further comprises: When the authority management system is upgraded to a dynamic authority management version, a corresponding built-in user group is created for each built-in role.
[0053] In an embodiment of the present invention, the permission management system can support online upgrades. For upgrades from a version without dynamic permission management, since the original version only has user groups with built-in roles, during the upgrade process, these user groups can be assigned permission directory information according to the permission targets of the aforementioned built-in roles, thereby obtaining built-in user groups.
[0054] In one embodiment of the present invention, the method further comprises: When a user logs in to the authority management system, the role and authority directory corresponding to the user group of the user, as well as the authority corresponding to the authority directory, are obtained and displayed.
[0055] In the embodiment of the present invention, the rights management system provides multiple login methods for users, such as GUI and CLI. Generally, users can use GUI to operate. GUI will display the rights objects that the user has rights to according to the static and dynamic rights of the user who currently logs into the rights management system. In this way, the user can access the rights management system according to the rights objects that he has rights to, thereby improving the access efficiency of the rights management system.
[0056] In summary, the embodiments of the present invention can perform the following operations: 1) Classify all permission objects in the permission management system to form different permission directories and permission objects; 2) Add user group objects, user groups are used to manage multiple users, and roles, permission lists (permission directories and permission objects) attributes are added to the user groups; 3) The permissions of the permission directory are divided into four types: no permission, read-only permission, read-write permission, and incremental permission; 4) Users are no longer directly associated with roles, but are associated with user groups and roles; 5) Roles are divided into built-in roles and user-defined roles; 6) Built-in roles can include such as Mointor, CopyOpera tor, Service, Administrator, etc.; 7) The permissions of the permission objects of the user groups of built-in roles are fixed and do not support modification; 8) The permission values of the permission objects of the user groups of user-defined roles support dynamic adjustment; 9) When upgrading from a version that does not support dynamic permission management, the permission objects of the original user groups are automatically set to the corresponding permission values; 10) The permission check when the user performs an operation must go through static permission check and dynamic permission check in turn; when deleting a user group, it is classified and processed according to whether it is a built-in user group, whether there are users, and whether it is a built-in role: if it is a built-in user group, deletion is prohibited; if there are no users, it can be deleted directly; if there are users and it is a built-in role, after the user group is deleted, all users who originally belonged to the user group will be switched to the built-in user group Monitor; if there are users and it is a user-defined role, deletion is prohibited. The above can ensure that the user's permissions will not be expanded at will.
[0057] The embodiment of the present invention adds dynamic permission management on the basis of the original role-based static permission management without destroying the existing process architecture. Compared with the original role-based static permission management, it has richer permission combinations and increased flexibility, providing stronger protection for the stability and security of the storage device serving as the data base.
[0058] Reference Figure 7 , shows a structural block diagram of a user authority management provided by an embodiment of the present invention, which is applied to an authority management system, the authority management system includes multiple authority directories, each of which has a corresponding authority object, the authority management system includes multiple roles, and the device includes: The to-be-associated user group creation module 701 is used to create a first to-be-associated user group; wherein the first to-be-associated user group includes a role and permission directory; A role selection module 702, configured to select a target role from the roles of the first to-be-associated user group; The permission directory setting module 703 is used to determine a target permission directory from the permission directory of the first user group to be associated to obtain a user group; The rights management system access module 704 is used for, after a user is associated with the user group, for the user to access the rights object in the rights management system according to the rights directory corresponding to the associated user group.
[0059] In one embodiment of the present invention, the device further comprises: a classification statistics module, configured to: All the permission objects in the permission management system are classified to form a plurality of permission directories; wherein the permission directories respectively have corresponding permission objects.
[0060] In one embodiment of the present invention, the permission directory setting module 703 is used to: When the target role is a user-defined role, in response to a setting operation on the permission directory of the first to-be-associated user group, a first target permission directory of the first to-be-associated user group is selected from the permission directory of the first to-be-associated user group to obtain a customized user group.
[0061] In one embodiment of the present invention, the permission directory setting module 703 is used to: When the target role is a built-in role, the permission directory corresponding to the built-in role is used as the second target permission directory of the first user group to be associated to obtain a custom user group; the permission directory corresponding to the built-in role has corresponding permissions.
[0062] In one embodiment of the present invention, the device further comprises: Create a second user group to be associated for each built-in role; wherein the second user group to be associated includes a role and permission directory The permission directory corresponding to the built-in role is selected from the permission directory of the second user group to be associated, so as to obtain a built-in user group.
[0063] In an embodiment of the present invention, the device further includes: a deletion module, configured to: In response to a deletion operation on the user group, taking the user group corresponding to the deletion operation as a user group to be deleted; When the user group to be deleted is a built-in user group, deleting the user group to be deleted is prohibited.
[0064] In one embodiment of the present invention, the deletion module is used to: When the user group to be deleted is a custom user group, determining whether there is an associated user in the user group to be deleted; If there is no associated user in the user group to be deleted, the user group to be deleted is deleted.
[0065] In one embodiment of the present invention, the deleting module is used to: if there are associated users in the user group to be deleted, determine whether the role associated with the user group to be deleted is a built-in role; If the role associated with the to-be-deleted user group is a built-in role, the to-be-deleted user group is deleted, and all users associated with the to-be-deleted user group are switched to the built-in user group specified by the association.
[0066] In an embodiment of the present invention, the designated built-in user group is the built-in user group with the lowest authority among all the built-in user groups.
[0067] In one embodiment of the present invention, the deletion module is used to: If the role associated with the to-be-deleted user group is a user-defined role, deleting the to-be-deleted user group is prohibited.
[0068] In one embodiment of the present invention, the rights management system access module 704 is used to: In response to an access command issued by a user to the authority management system, querying the authority of the role and authority directory corresponding to the user group associated with the user; The access command is processed according to the role corresponding to the user group associated with the user and the permissions of the permission directory.
[0069] In an embodiment of the present invention, the permissions include no permission, read-only permission, read-write permission and incremental permission.
[0070] In one embodiment of the present invention, the rights management system access module 704 is used to: When the authority management system is upgraded to a dynamic authority management version, a corresponding built-in user group is created for each built-in role.
[0071] In one embodiment of the present invention, the device further comprises: a display module, configured to: When a user logs in to the authority management system, the role and authority directory corresponding to the user group of the user, as well as the authority corresponding to the authority directory, are obtained and displayed.
[0072] In an embodiment of the present invention, the user-defined role is a role with the highest authority in the authority management system.
[0073] In one embodiment of the present invention, the rights management system includes a storage system, a server, a large database, a security gateway, and a cloud service.
[0074] The embodiment of the present invention also provides a communication device, such as Figure 8As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504. Memory 503, used for storing computer programs; The processor 501, when used to execute the program stored in the memory 503, can implement the following steps: Creating a first user group to be associated; wherein the first user group to be associated includes a role and permission directory; Selecting a target role from the roles of the first user group to be associated; Determine a target permission directory from the permission directory of the first user group to be associated to obtain a user group; After the user is associated with the user group, the user is used to access the permission object in the permission management system according to the permission directory corresponding to the associated user group.
[0075] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits together, which are all well known in the art, so this article will not further describe them. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor can be transmitted on a wired medium or on a wireless medium through an antenna. Further, the antenna also receives data and transmits the data to the processor. The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory can be used to store data used by the processor when performing operations.
[0076] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0077] The communication interface is used for communication between the above terminal and other devices.
[0078] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0079] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0080] In another embodiment of the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the user authority management method described in any one of the above embodiments.
[0081] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the user authority management method described in any one of the above embodiments.
[0082] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0083] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0084] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A user rights management method, characterized in that: Applied to a rights management system, the rights management system includes a plurality of rights directories, each of which has a corresponding rights object, the rights management system includes a plurality of roles, and the method includes: Creating a first user group to be associated; wherein the first user group to be associated includes a role and permission directory; Selecting a target role from the roles of the first user group to be associated; Determine a target permission directory from the permission directory of the first user group to be associated to obtain a user group; After the user is associated with the user group, the user is used to access the permission object in the permission management system according to the permission directory corresponding to the associated user group.
2. The method according to claim 1, characterized in that The method further comprises: All the permission objects in the permission management system are classified to form a plurality of permission directories; wherein the permission directories respectively have corresponding permission objects.
3. The method according to claim 1, characterized in that Determining a target permission directory from the permission directory of the first to-be-associated user group to obtain a user group includes: When the target role is a user-defined role, in response to a setting operation on the permission directory of the first to-be-associated user group, a first target permission directory of the first to-be-associated user group is selected from the permission directory of the first to-be-associated user group to obtain a customized user group.
4. The method according to claim 3, characterized in that Determining a target permission directory from the permission directory of the first to-be-associated user group to obtain a user group includes: When the target role is a built-in role, the permission directory corresponding to the built-in role is used as the second target permission directory of the first user group to be associated to obtain a custom user group; the permission directory corresponding to the built-in role has corresponding permissions.
5. The method according to claim 1, characterized in that The method further comprises: Creating a second user group to be associated for each built-in role; wherein the second user group to be associated includes a role and a permission directory; The permission directory corresponding to the built-in role is selected from the permission directory of the second user group to be associated, so as to obtain a built-in user group.
6. The method according to claim 1, characterized in that The method further comprises: In response to a deletion operation on the user group, taking the user group corresponding to the deletion operation as a user group to be deleted; When the user group to be deleted is a built-in user group, deleting the user group to be deleted is prohibited.
7. The method according to claim 6, characterized in that The method further comprises: When the user group to be deleted is a custom user group, determining whether there is an associated user in the user group to be deleted; If there is no associated user in the user group to be deleted, the user group to be deleted is deleted.
8. The method according to claim 7, characterized in that The method further comprises: If there are any associated users in the user group to be deleted, determining whether the role associated with the user group to be deleted is a built-in role; If the role associated with the to-be-deleted user group is a built-in role, the to-be-deleted user group is deleted, and all users associated with the to-be-deleted user group are switched to the built-in user group specified by the association.
9. The method according to claim 8, characterized in that The designated built-in user group is the built-in user group with the lowest authority among all the built-in user groups.
10. The method according to claim 8, characterized in that The method further comprises: If the role associated with the to-be-deleted user group is a user-defined role, deleting the to-be-deleted user group is prohibited.
11. The method according to claim 1, characterized in that: After the user is associated with the user group, the user is used to access the permission object in the permission management system according to the permission directory corresponding to the associated user group, including: In response to an access command issued by a user to the authority management system, querying the authority of the role and authority directory corresponding to the user group associated with the user; The access command is processed according to the role corresponding to the user group associated with the user and the permissions of the permission directory.
12. The method according to claim 11, characterized in that The permissions include no permission, read-only permission, read-write permission, and incremental permission.
13. The method according to claim 5, characterized in that The method further comprises: When the authority management system is upgraded to a dynamic authority management version, a corresponding built-in user group is created for each built-in role.
14. The method according to claim 12, characterized in that The method further comprises: When a user logs in to the authority management system, the role and authority directory corresponding to the user group of the user, as well as the authority corresponding to the authority directory, are obtained and displayed.
15. The method according to claim 1, characterized in that The user-defined role is a role with the highest authority in the authority management system.
16. The method according to claim 12, characterized in that The rights management system includes a storage system, a server, a large database, a security gateway, and a cloud service.
17. A user rights management device, characterized in that: Applied to a rights management system, the rights management system includes a plurality of rights directories, each of which has a corresponding rights object, the rights management system includes a plurality of roles, and the device includes: A module for creating a user group to be associated, used to create a first user group to be associated; wherein the first user group to be associated includes a role and permission directory; A role selection module, used for selecting a target role from the roles of the first user group to be associated; A permission directory setting module, used to determine a target permission directory from the permission directory of the first user group to be associated to obtain a user group; The rights management system access module is used for, after a user is associated with the user group, for the user to access the rights object in the rights management system according to the rights directory corresponding to the associated user group.
18. A communication device, characterized in that: include: A transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; The processor is used to read the program in the memory to implement the user authority management method as described in any one of claims 1-15.
19. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the user authority management method as described in any one of claims 1 to 15 is implemented.
20. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the user rights management method as described in any one of claims 1 to 15 is implemented.
Citation Information
Patent Citations
Access and client access management method and system and medium
CN111046354A
Authority management method and device, equipment and storage medium
CN118211256A
Data management method and device of operation and maintenance platform, electronic equipment and medium
CN118368120A
Cited By
Cloud computing platform data security access method and system
CN119316228A
