User authority management method and device, equipment and storage medium

By configuring initial resource permissions and resource permission upper limits for each type of role, and updating the role's resource permissions or roles based on permission change information, the problem of role setting errors and management complexity caused by user identity changes in the existing technology is solved, and high efficiency is achieved. permission management.

CN118821089APending Publication Date: 2024-10-22CHINA MOBILE M2M +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311633825.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The existing role-based permission management model requires frequent creation of new roles when user identities change, resulting in role setting errors and too many roles, which in turn leads to permission setting errors, increasing management complexity and inefficiency.

Method used

By configuring the initial resource permissions and the upper limit of resource permissions for each type of role, the resource permissions or roles of the roles associated with the user are updated based on permission change information to avoid unlimited new roles and reduce human management errors.

Benefits of technology

It effectively avoids role explosion, reduces inefficiency and errors in permission management, and improves the efficiency and accuracy of permission management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821089A_ABST
    Figure CN118821089A_ABST
Patent Text Reader

Abstract

The invention discloses a user authority management method and device, equipment and a storage medium, and the method comprises the steps: obtaining authority change information when obtained user information triggers authority change; updating the resource authority of the role associated with the user or updating the role associated with the user according to the authority change information; wherein the system is pre-configured with a plurality of types of roles, and each type of role is configured with a corresponding initial resource permission and a resource permission upper limit. According to the embodiment of the invention, the corresponding initial resource authority and the resource authority upper limit are configured for each type of roles, and the resource authority of the role associated with the user or the role associated with the user can be updated when the authority change of the user is triggered by matching the configuration authority strategy, so that the situation that the system newly creates and allocates roles for the user without limitation is avoided, and the user experience is improved. System role explosion is avoided, and low efficiency and errors caused by manual management of user permission are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of authority management, and in particular to a user authority management method, device, equipment and storage medium. Background Art

[0002] For systems with many resources and users, a role-based permission control model is often used, that is, the access operation permissions of system resources are assigned to roles, and then the roles are assigned to users so that users have the corresponding permissions. For example, the system role administrator creates a new role of operation administrator, and assigns the role the system resource permissions that the corresponding operation administrator in the system should have. When an operation management employee joins the company, the corresponding operation administrator role is selected for the employee in the system, and the employee has the permissions corresponding to the operation administrator role. When there are multiple users with the same permissions in the system, or the system administrator has a relatively clear role definition, this method is simpler and more efficient than directly authorizing users.

[0003] However, the existing role-based permission management control model, when there are multiple users in the system who should have similar but different permissions, and the identity of the system user changes due to certain behaviors (such as job adjustment, payment, permission application, etc.), it is necessary to create a new role to complete the change of its permissions. The system role administrator is required to have a very high understanding of the business, users and roles, which can easily lead to role setting errors, role explosion caused by too many roles, and then incorrect user permission settings. Summary of the invention

[0004] Based on this, the present invention provides a user authority management method, apparatus, device and storage medium, which can configure corresponding initial resource permissions and resource authority upper limits for each type of role, and by configuring authority policies, can update the resource permissions of the user-associated role or update the user-associated role when the user's authority change is triggered, thereby avoiding the system from creating and assigning roles to users without restrictions, avoiding system role explosion, and reducing inefficiency and errors caused by human management of user permissions.

[0005] To achieve the above object, an embodiment of the present invention provides a user rights management method, including:

[0006] When the acquired user information triggers a permission change, obtain the permission change information;

[0007] The resource permissions of the role associated with the user are updated or the role associated with the user is updated according to the permission change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource permissions and resource permission upper limits.

[0008] As an improvement of the above solution, updating the resource permissions of the role associated with the user or updating the role associated with the user according to the permission change information includes:

[0009] When the permission change information exceeds the resource permission upper limit of the role associated with the user, the role associated with the user is updated according to the permission change information so that the permission change information does not exceed the resource permission upper limit of the role associated with the user after the update.

[0010] As an improvement of the above solution, the permission change information includes newly added resource permissions and to-be-deleted resource permissions; when the permission change information exceeds the resource permission upper limit of the role associated with the user, updating the role associated with the user according to the permission change information includes:

[0011] When the newly added resource permission exceeds the upper limit of the resource permission of the role associated with the user, a target role is configured for the user; wherein the newly added resource permission does not exceed the upper limit of the resource permission of the target role;

[0012] If the role to be deleted does not have any resource permissions after the resource permissions to be deleted of the role associated with the user are deleted, the role to be deleted is removed for the user; wherein the role to be deleted is the role to which the resource to be deleted belongs and the role to be deleted belongs to the role associated with the user.

[0013] As an improvement of the above solution, the updating of the resource permissions of the role associated with the user or the updating of the role associated with the user according to the permission change information includes:

[0014] When the permission change information does not exceed the upper limit of the resource permission of the role associated with the user, the resource permission of the role associated with the user is updated according to the permission change information.

[0015] As an improvement of the above solution, the permission change information includes newly added resource permissions and to-be-deleted resource permissions; when the permission change information does not exceed the resource permission upper limit of the role associated with the user, updating the resource permission of the role associated with the user according to the permission change information includes:

[0016] When the newly added resource permission does not exceed the resource permission upper limit of the role associated with the user, grant the newly added resource permission to the role associated with the user;

[0017] If the role to be deleted still has at least one resource permission after the resource permission to be deleted of the role associated with the user is deleted, the resource permission to be deleted of the role associated with the user is removed; wherein the role to be deleted is the role to which the resource to be deleted belongs and the role to be deleted belongs to the role associated with the user.

[0018] As an improvement of the above solution, the user information includes at least one of user unit identification information and user behavior information;

[0019] When the acquired user information triggers a permission change, before acquiring the permission change information, the method further includes:

[0020] Based on the user role acquisition strategy, the initial role is determined according to the registration entry obtained when the user registers the system, and the initial role is configured for the user.

[0021] As an improvement of the above solution, when the acquired user information triggers a permission change, before acquiring the permission change information, it also includes:

[0022] Obtain resource requirements of all users, and classify users according to the resource requirements to obtain several categories of users;

[0023] Build corresponding roles for each type of user to obtain several types of roles;

[0024] Organize and split system resources, and set corresponding resource permission limits and initial resource permissions for each type of role created.

[0025] To achieve the above purpose, an embodiment of the present invention further provides a user rights management device, comprising:

[0026] A change information acquisition module is used to obtain permission change information when the acquired user information triggers a permission change;

[0027] The permission change module is used to update the resource permissions of the role associated with the user or update the role associated with the user according to the permission change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource permissions and resource permission upper limits.

[0028] To achieve the above objectives, an embodiment of the present invention further provides a user rights management device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the user rights management method as described in any of the above embodiments is implemented.

[0029] To achieve the above objectives, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the user authority management method as described in any of the above embodiments.

[0030] Compared with the prior art, the user authority management method, apparatus, device and storage medium disclosed in the embodiments of the present invention obtain authority change information when the acquired user information triggers an authority change; update the resource authority of the role associated with the user or update the role associated with the user according to the authority change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource authority and resource authority upper limit. It can be seen that the embodiments of the present invention can configure corresponding initial resource authority and resource authority upper limit for each type of role, and by matching the configuration authority policy, can update the resource authority of the role associated with the user or update the role associated with the user when the user's authority change is triggered, thereby avoiding the system from creating and assigning roles to users without restriction, avoiding system role explosion, and reducing inefficiency and errors caused by human management of user authority. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 It is a flowchart of a user rights management method provided by an embodiment of the present invention;

[0033] Figure 2 This is a schematic diagram of user information provided by an embodiment of the present invention;

[0034] Figure 3 It is a relationship diagram between the resources obtainable by the role and the system resources provided by an embodiment of the present invention;

[0035] Figure 4 is a schematic diagram of role and system resource mapping provided by an embodiment of the present invention;

[0036] Figure 5 It is a structural diagram of a user rights management device provided by an embodiment of the present invention;

[0037] Figure 6 It is a structural diagram of a user rights management device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] See also Figure 1 , is a flow chart of a user rights management method provided by an embodiment of the present invention.

[0040] Specifically, the user rights management method includes steps S1 to S2:

[0041] S1. When the acquired user information triggers a permission change, obtain permission change information;

[0042] S2. Update the resource permissions of the role associated with the user or update the role associated with the user according to the permission change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource permissions and resource permission upper limit.

[0043] It is worth noting that the user authority management method can be executed by a server, which is not limited here. For example, it can be executed by a system that provides resources, and roles in the system are assigned to users so that users have resource permissions corresponding to the roles.

[0044] Specifically, when a user executes the user authority change policy within the role, the system resources that the user can obtain are automatically changed according to the rule settings, but the upper limit of the authority set for the role to which the user belongs is not allowed to exceed. Exemplarily, the system is pre-configured with roles A, B, and C. The upper limit of the resource authority of role A is the authority range C, the upper limit of the resource authority of role B is the authority range D, and the upper limit of the resource authority of role C is the authority range E. User information includes basic user information, user identification information, and user behavior information. Basic user information includes user name, user ID, user contact information, user registration time, and user nickname. The system obtains user information, determines user S according to the user's basic information, obtains corresponding permission change information when user identification information or user behavior information triggers the permission change rules pre-set in the system, and then performs permission change. The change method is: automatically updating the resource permissions of the role associated with user S (such as role A) or updating the role associated with the user (such as associating role B with user S) according to the permission change information. After the permission change, the permissions possessed by the role associated with the user cannot exceed the resource permission upper limit of the corresponding role due to the upper limit of the resource permissions of the role. The upper limit and initial value of the resources that the user can obtain are managed through the role, the types of roles are reduced, role explosion is avoided, and the manual setting operations of the role administrator are reduced. By combining the permission policy settings, users can automatically obtain the permissions corresponding to their roles when performing a defined operation. The maximum value does not exceed the upper limit of the role resources, avoiding over-configuration of permissions.

[0045] In one implementation, updating the resource permissions of the role associated with the user or updating the role associated with the user according to the permission change information includes:

[0046] When the permission change information exceeds the resource permission upper limit of the role associated with the user, the role associated with the user is updated according to the permission change information so that the permission change information does not exceed the resource permission upper limit of the role associated with the user after the update.

[0047] Specifically, after obtaining the permission change information, it is necessary to analyze and judge it to determine whether the permission change will exceed the resource permission upper limit of the role currently associated with the user. If it exceeds the resource upper limit of the currently associated role, the role associated with the user is updated so that the permission change information does not exceed the resource permission upper limit of the role associated with the user after the update. Exemplarily, when the user identification changes or the user performs a specific action, the corresponding permission change information is determined by querying the system permission policy table and compared with the resource permission upper limit of the role currently associated with the user. When the permission change information exceeds the resource permission upper limit of the currently associated role, the action performed by the user belongs to the action defined by the role change policy, so the role associated with the user is changed so that the user can obtain the system resources corresponding to the permission change information.

[0048] In one implementation, the permission change information includes newly added resource permissions and to-be-deleted resource permissions; when the permission change information exceeds the resource permission upper limit of the role associated with the user, updating the role associated with the user according to the permission change information includes:

[0049] When the newly added resource permission exceeds the upper limit of the resource permission of the role associated with the user, a target role is configured for the user; wherein the newly added resource permission does not exceed the upper limit of the resource permission of the target role;

[0050] If the role to be deleted does not have any resource permissions after the resource permissions to be deleted of the role associated with the user are deleted, the role to be deleted is removed for the user; wherein the role to be deleted is the role to which the resource to be deleted belongs and the role to be deleted belongs to the role associated with the user.

[0051] Exemplarily, a user permission change policy is set up to establish a corresponding table (system permission policy table) between user behavior and identification changes and permissions. It includes a new user role acquisition policy, a user role change policy, and a role-based user permission change policy. The following is an example of the corresponding user role change policy. See the table below. Assume that the roles include ordinary users, ordinary employees, technical support personnel, and campus administrators. User information includes user identification information and user behavior information. When the user's user identification changes from an external user to an internal user, it is necessary to increase the permissions related to the "internal user". Since the permissions related to the "internal user" exceed the resource permission limit of the role associated with the user (ordinary user), the "ordinary employee" role is added to the user. Similarly, when the role associated with the user is an "ordinary employee", if the user passes the technical support online course exam, it is necessary to increase the permissions related to technical support, and this permission exceeds the resource permission limit of the "ordinary employee". Therefore, the "technical support personnel" role is added to the user. Assume that the role associated with the user is "Park Administrator". If the user makes improper remarks, the user's resource permissions related to management need to be removed. After the resource permissions related to management are removed, the user does not have all the permissions of the "Park Administrator" role. Therefore, the "Park Administrator" role is removed from the user.

[0052]

[0053] It is worth noting that the role change strategy is not limited to the above-mentioned specific settings, and specific roles and specific role change conditions can be set according to the actual allocation method of system resources.

[0054] In one implementation, updating the resource permissions of the role associated with the user or updating the role associated with the user according to the permission change information includes:

[0055] When the permission change information does not exceed the upper limit of the resource permission of the role associated with the user, the resource permission of the role associated with the user is updated according to the permission change information.

[0056] Specifically, after obtaining the permission change information, it is necessary to analyze and judge it to determine whether the permission change will exceed the resource permission upper limit of the role currently associated with the user. If it does not exceed the resource upper limit of the role currently associated with the user, the resource permission of the role associated with the user is updated. Exemplarily, when the user identification changes or the user performs a specific action, the corresponding permission change information is determined by querying the system permission policy table, and compared with the resource permission upper limit of the role currently associated with the user. When the permission change information does not exceed the resource permission upper limit of the role currently associated with the user, the action performed by the user belongs to the action defined by the user permission change policy within the role. Therefore, the permission is changed within the role associated with the user, so that the user can obtain the system resources corresponding to the permission change information.

[0057] In one implementation, the permission change information includes newly added resource permissions and to-be-deleted resource permissions; when the permission change information does not exceed the resource permission upper limit of the role associated with the user, updating the resource permission of the role associated with the user according to the permission change information includes:

[0058] When the newly added resource permission does not exceed the resource permission upper limit of the role associated with the user, grant the newly added resource permission to the role associated with the user;

[0059] If the role to be deleted still has at least one resource permission after the resource permission to be deleted of the role associated with the user is deleted, the resource permission to be deleted of the role associated with the user is removed; wherein the role to be deleted is the role to which the resource to be deleted belongs and the role to be deleted belongs to the role associated with the user.

[0060] Exemplarily, the following is an example of the corresponding user permission change policy within a role, see the table below, assuming that the roles include ordinary users, ordinary employees and campus administrators, and the user information includes user identification information and user behavior information. When the role associated with the user is an ordinary user, assuming that the user has paid for resource A and needs to increase the A resource permission, since the A resource permission does not exceed the resource permission upper limit of the "ordinary user" role, the A resource permission in the "ordinary user" is directly opened for the user; similarly, when the role associated with the user is an "ordinary employee", if the user indicates that he wants to change from "organization 1" to "organization 2", the organization 1 address book permission needs to be removed for the user, and the organization 2 address book permission needs to be added. This permission does not exceed the resource permission upper limit of the "ordinary employee", so the permission change is directly performed within the "ordinary employee" role associated with the user. Assuming that the role associated with the user is "Park Administrator", if the user has not logged into the system for more than a preset number of days (such as 7 days), the "permission for resource A" needs to be removed. Since this permission is only one of the permissions of the "Park Administrator", deleting it will not cause the user to lose all permissions of the "Park Administrator" role. Therefore, the permission for resource A is only removed within the "Park Administrator" role associated with the user.

[0061]

[0062] It is worth noting that the policy for changing user permissions within a role is not limited to the above specific settings and can be set according to actual conditions.

[0063] In one embodiment, the user information includes at least one of user unit identification information and user behavior information;

[0064] When the acquired user information triggers a permission change, before acquiring the permission change information, the method further includes:

[0065] Based on the user role acquisition strategy, the initial role is determined according to the registration entry obtained when the user registers the system, and the initial role is configured for the user.

[0066] For example, Figure 2 The user information diagram shown in the figure includes user basic information, user identification information (user unit identification information) and user behavior information. The user basic information includes user name, user ID, user contact information, user registration time and user nickname, etc. The user identification information includes position identification, organization identification, location identification, channel identification and internal and external user identification, etc. The user behavior information includes registration, payment, remote login, improper speech and permission application (that is, the user can apply for permission to the system), etc.

[0067] For example, when a user registers / is added through different entrances of the system, the corresponding role is automatically assigned to the user according to the rule settings based on the user role acquisition strategy, so that the user has the initial permissions corresponding to the role. The following is a user role acquisition strategy table and corresponding examples.

[0068]

[0069] In one embodiment, when the acquired user information triggers a permission change, before acquiring the permission change information, the method further includes:

[0070] Obtain resource requirements of all users, and classify users according to the resource requirements to obtain several categories of users;

[0071] Build corresponding roles for each type of user to obtain several types of roles;

[0072] Organize and split system resources, and set corresponding resource permission limits and initial resource permissions for each type of role created.

[0073] Specifically, the user rights are acquired through the corresponding relationship between users, roles, and system resources. The needs of different users vary greatly. System users are divided into categories, and roles are defined and created based on these categories, such as ordinary users, ordinary employees, technical support, business management, etc. System resources are organized and split, and the upper limit and initial resource permissions of the corresponding system resources that can be obtained are set for the created roles. Figure 3 As shown, the initial resources of role 1 are limited within the upper limit of the system resources of role 1, and the upper limit of the system resources of role 1 is limited within the total system resources. Specifically, Figure 4 The role and system resource mapping diagram shown in the figure, Figure 4 The selected resources represent the upper limit and initial value of resources that role 1 can obtain, corresponding to the upper limit and initial resource permissions of resources, respectively.

[0074] Compared with the prior art, the user rights management method provided by the embodiment of the present invention obtains the rights change information when the acquired user information triggers the rights change; updates the resource rights of the role associated with the user or updates the role associated with the user according to the rights change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource rights and resource rights upper limits. It can be seen that the embodiment of the present invention can configure the corresponding initial resource rights and resource rights upper limits for each type of role, and by matching the configuration rights policy, can update the resource rights of the role associated with the user or update the role associated with the user when the user's rights change is triggered, thereby avoiding the system from creating and assigning roles to users without restriction, avoiding the explosion of system roles, and reducing the inefficiency and errors caused by human management of user rights.

[0075] See also Figure 5 , Figure 5 : is a schematic diagram of the structure of a user rights management device provided by an embodiment of the present invention, the user rights management device comprising:

[0076] A change information acquisition module 11 is used to acquire permission change information when the acquired user information triggers a permission change;

[0077] The permission change module 12 is used to update the resource permission of the role associated with the user or update the role associated with the user according to the permission change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource permissions and resource permission upper limits.

[0078] It is worth noting that the specific working process of the user authority management device can refer to the working process of the user authority management method described in the above embodiment, which will not be repeated here.

[0079] Compared with the prior art, the user rights management device provided by the embodiment of the present invention obtains the rights change information when the acquired user information triggers the rights change; updates the resource rights of the role associated with the user or updates the role associated with the user according to the rights change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource rights and resource rights upper limits. It can be seen that the embodiment of the present invention can configure the corresponding initial resource rights and resource rights upper limits for each type of role, and by matching the configuration rights policy, can update the resource rights of the role associated with the user or update the role associated with the user when the user's rights change is triggered, thereby avoiding the system from creating and assigning roles to users without restriction, avoiding the explosion of system roles, and reducing the inefficiency and errors caused by human management of user rights.

[0080] See also Figure 6 , Figure 6 is a structural diagram of a user rights management device provided in an embodiment of the present invention, the user rights management device includes a processor 21, a memory 22, and a computer program stored in the memory 22 and configured to be executed by the processor 21, and the processor 21 implements the steps in the above-mentioned user rights management method embodiment when executing the computer program, for example Figure 1 or, when the processor 21 executes the computer program, the functions of the modules in the above-mentioned device embodiments are implemented, such as the change information acquisition module.

[0081] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the user rights management device. For example, the computer program may be divided into multiple modules, and the specific functions of each module are as follows:

[0082] A change information acquisition module 11 is used to acquire permission change information when the acquired user information triggers a permission change;

[0083] The permission change module 12 is used to update the resource permission of the role associated with the user or update the role associated with the user according to the permission change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource permissions and resource permission upper limits.

[0084] The specific working process of each module can refer to the working process of the user authority management device described in the above embodiment, which will not be repeated here.

[0085] The user rights management device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The user rights management device may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the user rights management device may also include input and output devices, network access devices, buses, etc.

[0086] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the user rights management device, and uses various interfaces and lines to connect various parts of the entire user rights management device.

[0087] The memory 22 can be used to store the computer program and / or module. The processor 21 implements various functions of the user rights management device by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0088] Wherein, if the module integrated in the user rights management device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 21. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0089] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A user rights management method, It is characterized in that include: When the acquired user information triggers a permission change, obtain the permission change information; The resource permissions of the role associated with the user are updated according to the permission change information, or the role associated with the user is updated; wherein the system is pre-configured with several types of roles, and each type of role is configured with corresponding initial resource permissions and resource permission upper limits.

2. The user rights management method according to claim 1, It is characterized in that The updating of the resource permissions of the role associated with the user or updating the role associated with the user according to the permission change information includes: When the permission change information exceeds the resource permission upper limit of the role associated with the user, the role associated with the user is updated according to the permission change information so that the permission change information does not exceed the resource permission upper limit of the role associated with the user after the update.

3. The user rights management method according to claim 2, It is characterized in that The permission change information includes newly added resource permissions and to-be-deleted resource permissions; When the permission change information exceeds the resource permission upper limit of the role associated with the user, updating the role associated with the user according to the permission change information includes: When the newly added resource permission exceeds the upper limit of the resource permission of the role associated with the user, a target role is configured for the user; wherein the newly added resource permission does not exceed the upper limit of the resource permission of the target role; If the role to be deleted does not have any resource permissions after the resource permissions to be deleted of the role associated with the user are deleted, the role to be deleted is removed for the user; wherein the role to be deleted is the role to which the resource to be deleted belongs and the role to be deleted belongs to the role associated with the user.

4. The user rights management method according to any one of claims 1 to 3, It is characterized in that The updating of the resource permissions of the role associated with the user or updating the role associated with the user according to the permission change information includes: When the permission change information does not exceed the upper limit of the resource permission of the role associated with the user, the resource permission of the role associated with the user is updated according to the permission change information.

5. The user rights management method according to claim 4, It is characterized in that The permission change information includes newly added resource permissions and to-be-deleted resource permissions; When the permission change information does not exceed the resource permission upper limit of the role associated with the user, updating the resource permission of the role associated with the user according to the permission change information includes: When the newly added resource permission does not exceed the resource permission upper limit of the role associated with the user, grant the newly added resource permission to the role associated with the user; If the role to be deleted still has at least one resource permission after the resource permission to be deleted of the role associated with the user is deleted, the resource permission to be deleted of the role associated with the user is removed; wherein the role to be deleted is the role to which the resource to be deleted belongs and the role to be deleted belongs to the role associated with the user.

6. The user rights management method according to any one of claims 1 to 3, It is characterized in that The user information includes at least one of user unit identification information and user behavior information; When the acquired user information triggers a permission change, before acquiring the permission change information, the method further includes: Based on the user role acquisition strategy, the initial role is determined according to the registration entry obtained when the user registers the system, and the initial role is configured for the user.

7. The user rights management method according to any one of claims 1 to 3, It is characterized in that When the acquired user information triggers a permission change, before acquiring the permission change information, the method further includes: Obtain resource requirements of all users, and classify users according to the resource requirements to obtain several categories of users; Construct corresponding roles for each type of user to obtain several types of roles; Organize and split system resources, and set corresponding resource permission limits and initial resource permissions for each type of role created.

8. A user rights management device, It is characterized in that include: A change information acquisition module is used to obtain permission change information when the acquired user information triggers a permission change; The permission change module is used to update the resource permissions of the role associated with the user or update the role associated with the user according to the permission change information; wherein the system is pre-configured with several types of roles, each type of role is configured with corresponding initial resource permissions and resource permission upper limits.

9. A user rights management device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the user authority management method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the user authority management method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Cloud computing platform data security access method and system

    CN119316228A