Rights management method, device, computer equipment and storage medium

Through permission verification and management for different user types, the problem of low efficiency of permission configuration in the existing technology is solved, the rigor and security of the data management system are achieved, and the risk of system downtime is avoided.

CN112989298BActive Publication Date: 2024-10-18JINGDONG TECH HLDG CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110257928.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-09
Publication Date
2024-10-18
Estimated Expiration
2041-03-09

AI Technical Summary

Technical Problem

The permission management method of the existing data management system lacks pertinence, resulting in low efficiency of permission configuration, and cannot effectively prevent problems such as system downtime caused by inappropriate permission configuration.

Method used

By receiving user requests, obtain user type and identity information, determine whether the request is legal, including matching the target user, target data, and target processing matters, perform associated authorization operations to grant permissions, and implement permission verification and management for different user types.

Benefits of technology

It improves the rigor and hierarchy of permission management, avoids system problems caused by inappropriate permission configuration, meets the permission requirements of different user types, and enhances the reliability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112989298B_ABST
    Figure CN112989298B_ABST
Patent Text Reader

Abstract

The present application relates to a permission management method, apparatus, computer equipment and storage medium. The method comprises: receiving a user request; obtaining the type of the user request; if the user request is a first request, obtaining the type of the current user who sends the first request; if the current user is a first-class user, obtaining the target user, target data and target processing items in the first request; judging whether the first request is legal based on the target user, target data and target processing items; if the first request is legal, executing the first request; wherein the first request includes an associated authorization operation for the target user, and the associated authorization operation is to grant the target user the permission to perform target processing items on the target data set. The method of the present application can make permission management more accurate and more reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a permission management method, apparatus, computer equipment and storage medium. Background Art

[0002] The data management system is a system that can manage a variety of data, including logistics, supply chain, sales, etc. The security of the data management system is one of the most important indicators for evaluating the data management system.

[0003] The most important means to improve the security of data management systems is reasonable permission configuration, that is, permission management of data management systems. Permission management refers to which role or roles in data permission management can manage which data and to what extent they can manage which data.

[0004] In the prior art, the data management system may be provided by a third party. For different users, the permission configuration and permission management need to be adaptively changed. However, the permission management method in the prior art lacks specificity, resulting in low efficiency of permission management. Summary of the invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a rights management method, apparatus, computer device and storage medium.

[0006] In a first aspect, the present application provides a rights management method, the method comprising:

[0007] Receive user requests;

[0008] Obtaining the type of the user request;

[0009] If the user request is a first request, obtaining the type of the current user who sends the first request;

[0010] If the type of the current user is a first type of user, obtaining the target user, target data and target processing items in the first request;

[0011] Determining whether the first request is legal according to the target user, target data, and target processing matters;

[0012] If the first request is legal, executing the first request;

[0013] The first request includes an associated authorization operation for a target user, and the associated authorization operation is to grant the target user the authority to perform target processing on the target data set.

[0014] In the embodiment of the present application, the determining whether the first request is legal includes:

[0015] Obtaining the type and identity information of the target user;

[0016] If the target user is a second type of user, determining whether the authority of the current user includes the associated authorization operation for the target user according to the identity information;

[0017] If the first request includes an associated authorization operation for the target user, it is determined that the first request is legal.

[0018] In the embodiment of the present application, the step of determining whether the permissions of the current user include an associated authorization operation for the target user includes:

[0019] According to the identity information of the target user, determine whether the current user's permissions include the target user;

[0020] If the target user is included, obtaining the preset authority of the target user, where the preset authority of the target user is the authority to perform preset processing items on the preset data set;

[0021] Determining whether the preset permissions of the target user match the permissions for performing target processing on the target data set in the associated authorization operation;

[0022] If they match, it is determined that the permissions of the current user include the associated authorization operation for the target user.

[0023] In the embodiment of the present application, executing the first request includes:

[0024] The target user's authority is associated and authorized so that the target user has the authority to perform the target processing on the target data set.

[0025] In the embodiment of the present application, if the user request is the second request, then:

[0026] Obtaining the type and identity information of the current user who sends the second request;

[0027] If the type of the current user is a second type of user, obtaining the target data and target processing items in the second request;

[0028] Obtaining the preset authority of the current user, where the preset authority of the current user is the authority to perform preset processing items on a preset data set;

[0029] Determining whether the preset permissions of the current user match the target data and target processing items in the second request;

[0030] If matched, executing the second request;

[0031] The second request is a request for performing target processing on the target data set.

[0032] In the embodiment of the present application, if the user request is the third request, then:

[0033] then obtaining the type of the current user who sends the first request;

[0034] If the type of the current user is a first type of user, then obtaining the reference user in the third request and the associated authorization operation for the reference user,

[0035] The associated authorization operation for the reference user is to grant the reference user permission, so that the reference user can grant the target user permission to perform target processing on the target data set;

[0036] Acquire the preset permissions of the current user, where the preset permissions of the current user are preset reference users and preset associated authorization operations for the preset reference users;

[0037] Determining whether the preset permissions of the current user match the target data and target processing items in the third request;

[0038] If matched, executing the third request;

[0039] The third request is an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user authority, so that the reference user can grant the target user authority to perform target processing on the target data set.

[0040] In the embodiment of the present application, the method further includes:

[0041] If the user request is a first request and the user sending the user request is a second type of user, then the first request is determined to be illegal;

[0042] If the user request is the second request and the user sending the user request is a third-category user, then determining that the second request is illegal;

[0043] If the user request is a first request, the user sending the user request is a first-category user, but the target user in the first request is a third-category user, then the first request is determined to be illegal;

[0044] If the user request is a third request, the user sending the user request is a first-category user, but the reference user in the third request is a second-category user or a third-category user, then the third request is determined to be illegal;

[0045] The second request is a request to perform target processing on the target data set.

[0046] The third request is an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user authority, so that the reference user can grant the target user authority to perform target processing on the target data set.

[0047] In the embodiment of the present application, if the type of the current user is a first type of user, the method further includes:

[0048] Get the second type of user that can be associated and authorized corresponding to the current user;

[0049] Displaying the second category of users that can be associated with authorization through a visual interface;

[0050] receiving, through the visual display interface, a selection of a second category of users to which authorization can be associated;

[0051] Obtaining a preset operable data set corresponding to the selected second category of users;

[0052] Displaying the corresponding preset operable data set through a visual interface;

[0053] receiving, through a visual display interface, a selection of a corresponding preset operable data set;

[0054] Obtain the preset processable items corresponding to the selected operational data set;

[0055] Receive selection of corresponding preset processable items through a visual display interface;

[0056] According to the selected second category users, operable data sets and processable matters, the selected second category users are associated with authorization.

[0057] In a second aspect, a rights management device is provided, the device comprising:

[0058] A receiving unit, used for receiving a user request;

[0059] An acquisition unit, used to acquire the type of the user request;

[0060] The acquisition unit is further configured to acquire the type of the current user who sends the first request if the user request is the first request;

[0061] The acquisition unit is further configured to acquire the target user, target data and target processing items in the first request if the type of the current user is a first type of user;

[0062] A judging unit, configured to judge whether the first request is legal according to the target user, target data and target processing items;

[0063] an execution unit, configured to execute the first request if the first request is legal;

[0064] The first request includes an associated authorization operation for a target user, and the associated authorization operation is to grant the target user the authority to perform target processing on the target data set.

[0065] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0066] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program implements the steps of the above method when executed by a processor.

[0067] The present application provides a permission management method, the method comprising: receiving a user request; obtaining the type of the user request; if the user request is a first request, obtaining the type of the current user who sends the first request; if the current user is of the first type of user, obtaining the target user, target data and target processing items in the first request; judging whether the first request is legal based on the target user, target data and target processing items; if the first request is legal, executing the first request; wherein the first request includes an associated authorization operation for the target user, and the associated authorization operation is to grant the target user the permission to perform target processing items on the target data set. In the embodiment of the present application, different permission verifications are performed for different user types, making permission management more rigorous, avoiding problems such as system downtime caused by inappropriate operations on important data sets due to inappropriate permission configuration; making permission management more hierarchical, meeting the permission requirements of different user types. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0069] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0070] Figure 1 The figure shows an application environment diagram of the rights management method in the embodiment of the present application;

[0071] Figure 2The figure is a flowchart of the permission management method in the embodiment of the present application;

[0072] Figure 3 The figure is a flowchart of the permission management method in the embodiment of the present application;

[0073] Figure 4 Shown is a schematic diagram of a visual display of a rights management method in an embodiment of the present application;

[0074] Figure 5 Shown is a schematic diagram of a visual display of a rights management method in an embodiment of the present application;

[0075] Figure 6 Shown is a schematic diagram of a visual display of a rights management method in an embodiment of the present application;

[0076] Figure 7 The figure is a structural block diagram of the rights management device in the embodiment of the present application;

[0077] Figure 8 The figure shows the internal structure of the computer device in the embodiment of the present application;

[0078] Fig. 9 Shown is a schematic diagram of an application environment in an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0080] Figure 1 FIG. 1 is an application environment diagram of a rights management method in an embodiment. Figure 1 , the rights management method is applied to a rights management system. The rights management system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected via a network. The terminal 110 can be a desktop terminal or a mobile terminal, and the mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The server 120 can be implemented as an independent server or a server cluster composed of multiple servers.

[0081] like Figure 2 As shown, in one embodiment, a rights management method is provided. This embodiment mainly applies the method to the above Figure 1 The server 120 in FIG. Figure 2, the permission management method specifically includes:

[0082] Step 210, receiving a user request;

[0083] Step 220: Obtain the type of the user request.

[0084] In the embodiment of the present application, the data management system may be developed by a third party, and therefore the authority of the administrator of the data management system may not be the highest level for the entire system, that is, the administrator's authority may not include changes to the underlying code and logic of the system, and the administrator's authority can only configure the authority of sub-administrators, and / or configure the authority of ordinary users, and / or the authority to operate data sets.

[0085] In one embodiment of the present application, a department's sub-administrator can only configure permissions for users belonging to the department, but cannot configure permissions across departments; ordinary employees cannot configure permissions, but can perform some operations on department data sets; visitor permissions can perform limited operations on department data sets, such as queries; and unauthorized personnel cannot perform any operations on any data sets.

[0086] In addition, administrators and sub-administrators can configure the permissions of corresponding users, but according to the system's preset rules, the permissions they can configure are also limited. For example, administrators can configure other users' permissions to query, operate, and modify some data sets, but cannot configure other users' permissions to modify the underlying code and underlying logic; sub-administrators can configure the query permissions of users belonging to the department, but cannot configure users' permissions to modify the department's initial data, etc. Ordinary employees, visitors, etc. cannot configure other users' permissions.

[0087] Therefore, in an embodiment of the present application, the permission management method can be applied to a data management system. The first type of user may be a user who can configure permissions for other users, that is, a user who can associate and authorize other users, such as an administrator in the data management system, or a sub-administrator of a department, etc.; the second type of user may be a user who can be configured with permissions, but can perform specific operations on specific data, such as a sub-administrator authorized by an administrator, or an ordinary user authorized by an administrator; the third type of user may be a user who cannot be configured with permissions, or a user who has no specific operating permissions on specific data, such as a visitor in a certain application scenario, or a hacker, etc.

[0088] In an embodiment of the present application, the permissions of the first category of users can configure the permissions of the second category of users. As described above, the permissions of the administrator can configure the permissions of sub-administrators, ordinary employees and visitors; the permissions of the sub-administrator can configure the permissions of ordinary employees in the department.

[0089] In the embodiment of the present application, the first type of users can also directly operate on the data set, and the second type of users can also directly operate on the data set.

[0090] In the embodiment of the present application, the type of each user can be preset, or can be an option provided in the system for the system user to choose. The same user may have multiple types, for example, a sub-administrator can be associated and authorized by the administrator, and can also be associated and authorized for ordinary employees.

[0091] Step 230: If the user request is the first request, obtain the type of the current user who sends the first request.

[0092] In the embodiment of the present application, the first request includes an associated authorization operation for a target user, and the associated authorization operation is to grant the target user the authority to perform target processing on the target data set.

[0093] Step 240: If the type of the current user is a first type of user, the target user, target data, and target processing items in the first request are obtained.

[0094] Step 250, judging whether the first request is legal based on the target user, target data and target processing items.

[0095] In the embodiment of the present application, in step 250, determining whether the first operation request is legal includes:

[0096] Obtaining the type and identity information of the target user;

[0097] If the target user is a second type of user, determining whether the authority of the current user includes the associated authorization operation for the target user according to the identity information;

[0098] If the first request includes an associated authorization operation for the target user, it is determined that the first request is legal.

[0099] The type of the target user may be a first type user, a second type user or a third type user. The identity information of the target user may be a specific identity. For example, if the user is a first type user, specifically a sub-administrator, the identity information may be a sub-administrator of department 1.

[0100] In the implementation of this application, the determination of whether the current user's permissions include associated authorization operations for the target user includes:

[0101] According to the identity information of the target user, determine whether the current user's permissions include the target user;

[0102] If the target user is included, obtaining the preset authority of the target user, where the preset authority of the target user is the authority to perform preset processing items on the preset data set;

[0103] Determining whether the preset permissions of the target user match the permissions for performing target processing on the target data set in the associated authorization operation;

[0104] If they match, it is determined that the permissions of the current user include the associated authorization operation for the target user.

[0105] Although the user type is a first-class user and can associate and authorize other users, it does not mean that all other users can be associated and authorized. For example, a sub-administrator can only associate and authorize ordinary users within the department / jurisdiction, and cannot associate and authorize ordinary users outside the department / jurisdiction. Therefore, it is necessary to determine whether the target user is included in the current user's permissions based on the target user's identity information.

[0106] If the target user is included, the preset authority of the target user is obtained, where the preset authority of the target user is the authority to perform preset processing items on the preset data set.

[0107] Determining whether the preset authority of the target user matches the authority to perform target processing items on the target data set in the associated authorization operation includes two aspects: one is whether the target data set of the target user matches the preset data set, and the other is whether the target processing items on the target data set match the preset processing items on the preset data set.

[0108] In the embodiment of the present application, matching means that the preset permission can be greater than or equal to the permission of the associated authorized operation, rather than requiring the two to be equal.

[0109] For example, the target user may be an ordinary employee 1-1 in department 1, and the preset permission of the ordinary employee 1-1 in department 1 is the permission to query the data of department 1 and the data of department 2.

[0110] If the associated authorization operation is that sub-administrator 1 grants ordinary employee 1-1 the permission to delete department 1 data, then the two do not match.

[0111] If the associated authorization operation is that sub-administrator 1 grants ordinary employee 1-1 the permission to query department 3's data, then the two do not match.

[0112] If the associated authorization operation is that sub-administrator 1 grants ordinary employee 1-1 the permission to query department 1's data, then the two match.

[0113] If the associated authorization operation is that sub-administrator 1 grants ordinary employee 1-1 the permission to query the data of department 1 and department 2, then the two match.

[0114] There is also an ordinary employee 3-1, who is not an employee of department 1. If the associated authorization operation is that sub-administrator 1 grants ordinary employee 3-1 the authority to query department 1's data, then the two do not match.

[0115] Step 260: If the first request is legal, execute the first request.

[0116] In the embodiment of the present application, in step 250, executing the first operation request includes:

[0117] The target user's authority is associated and authorized so that the target user has the authority to perform the target processing on the target data set.

[0118] The following is an introduction to the data set in the embodiments of the present application.

[0119] In the embodiment of the present application, a data set may be a data set in a database, and there may be multiple data sets in the system, each of which may be a type of data, or may be data generated within a period of time, or may be data divided / classified according to preset rules. For example, a data set may be a commodity inventory data set, or may be a data set such as the unit price / total amount of commodity sales, or may be a data set of a user's personal information; or may be a data set indicating that a specific user has permissions.

[0120] As mentioned above, different user types can process different target data sets. For example, ordinary users can process data sets of commodity sales unit prices and personal information, but cannot process commodity inventory data sets.

[0121] The permissions for processing items of a data set can be preset at the beginning of the data set creation, or can be configured according to user needs. For example, the underlying architecture data of the system may be designed and constructed by a third party. After the underlying architecture data is generated by the system, it is determined that only developers can modify, update, and process items.

[0122] The personal data set created by ordinary users can be modified, deleted, etc. by the users at any time after creation.

[0123] For example, the unit price data set can be modified by a sub-administrator of the pricing department, but cannot be modified by sales staff; the inventory quantity can be modified by a sub-administrator of the warehouse department, or it can be automatically generated by the system monitoring the shipment volume.

[0124] For example, a data set that indicates permissions for a specific user. An administrator can modify the permissions of a sub-administrator, a sub-administrator can modify the permissions of ordinary employees in the department, and ordinary employees can add permissions for visitors to access specific data in the department.

[0125] Since there are various types of users in the system, the requests sent by users may also be various. Therefore, when receiving a user request, it is necessary to first confirm the type of the current user who sent the user request, and then determine whether the user request is an associated authorization request. Based on the user type and the target user, target data and target processing items in the associated authorization request, decide whether to execute the first request.

[0126] In the embodiment of the present application, if the user request is the second request, then:

[0127] Obtaining the type and identity information of the current user who sends the second request;

[0128] If the type of the current user is a second type of user, obtaining the target data and target processing items in the second request;

[0129] Obtaining the preset authority of the current user, where the preset authority of the current user is the authority to perform preset processing items on a preset data set;

[0130] Determining whether the preset permissions of the current user match the target data and target processing items in the second request;

[0131] If matched, executing the second request;

[0132] The second request is a request for performing target processing on the target data set.

[0133] As described in the above embodiment, the user request may be a request to perform a target processing task on a target data set.

[0134] The target processing items may be specific operations on the data set, such as query, modify, add, delete, download, synchronize, etc.

[0135] In the embodiment of the present application, if the user request is a request for performing target processing on the target data set, as in the above embodiment, it is necessary to make a judgment based on the user's type and identity information, and then determine whether to execute the second request.

[0136] In one embodiment of the present application, the method further includes:

[0137] If the user request is a first request and the user sending the user request is a second type of user, then the first request is determined to be illegal;

[0138] If the user request is the second request and the user sending the user request is a third-category user, then it is determined that the second request is illegal;

[0139] If the user request is a first request, the user sending the user request is a first-category user, but the target user in the first request is a third-category user, then the first request is determined to be illegal;

[0140] If the user request is a third request, the user sending the user request is a first-category user, but the reference user in the third request is a second-category user or a third-category user, then the third request is determined to be illegal;

[0141] The second request is a request for performing target processing on the target data set.

[0142] The third request is an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user authority, so that the reference user can grant the target user authority to perform target processing on the target data set.

[0143] In the embodiments of the present application, situations where user requests are illegal include but are not limited to those described in the above embodiments, which will not be repeated here.

[0144] In the embodiment of the present application, different permission verifications are performed for different user types, user identities, and user requests, making permission management more rigorous and avoiding problems such as system downtime caused by inappropriate operations on important data sets due to inappropriate permission configuration. In the embodiment of the present application, different permission verifications are performed for different user types, making permission management more hierarchical and meeting the permission requirements of different user types.

[0145] In one embodiment of the present application, if the user request is the third request, then:

[0146] then obtaining the type of the current user who sends the first request;

[0147] If the type of the current user is a first type of user, then obtaining the reference user in the third request and the associated authorization operation for the reference user,

[0148] The associated authorization operation for the reference user is to grant the reference user permission, so that the reference user can grant the target user permission to perform target processing on the target data set;

[0149] Acquire preset permissions of the current user, where the preset permissions of the current user are preset reference users and preset associated authorization operations for the preset reference users;

[0150] Determining whether the preset permissions of the current user match the target data and target processing items in the third request;

[0151] If matched, executing the third request;

[0152] The third request is an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user authority, so that the reference user can grant the target user authority to perform target processing on the target data set.

[0153] In one embodiment of the present application, the third request of the first type of user includes an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user permission, so that the reference user can grant the target user permission to perform target processing on the target data set. In simple terms, user A can authorize user B, so that user B has the permission to authorize user C, so that user C can operate on other data sets.

[0154] For example, an administrator can configure the permissions of a sub-administrator so that the sub-administrator can configure the permissions of ordinary users in the department. The permissions of ordinary users can be configured by adding permissions, deleting permissions, modifying permissions, etc. This operation allows ordinary users in the department to modify, delete, add, synchronize, and other operations on specific data of the department.

[0155] For example, the administrator authorizes sub-administrator 1 to manage the permissions of users in department 1. After being authorized, sub-administrator 1 can configure permissions for sales personnel in department 1, allowing sales personnel to modify the sales data of department 1; sub-administrator 1 can also add warehouse managers, allowing them to modify the inventory data of department 1.

[0156] Figure 3 FIG. 1 is a flow chart of a method for managing permissions according to an embodiment of the present application. Figure 3 As shown, the method includes:

[0157] Step 301, receiving a first request;

[0158] Step 302, obtaining the type of the current user who sends the first request, if the type is a first type user, go to step 303, if the type is a second type user, go to step 309.

[0159] Step 303, obtain the first operation request in the first request, determine the type of the first operation request, if the first operation request is a request to operate the authority of the second type of user, go to step 304, if the first operation request is a request to process the data set, go to 311.

[0160] Step 304, obtaining the target user and target operation in the first operation request;

[0161] Step 305 , determining whether the target user is a second-category user, if yes, proceeding to step 306 , if not, proceeding to step 312 .

[0162] Step 306, obtaining the authority of the current user, and determining whether the authority of the current user includes the target user, if yes (yes), proceeding to step 307, if not (no), proceeding to step 312.

[0163] Step 307, obtain the target data set and processing items in the target operation, and determine whether the target user has the authority to perform the processing items on the target data set. If yes (yes), go to step 308; if not (no), go to step 312.

[0164] Step 308 , execute the first operation request, and go to step 312 .

[0165] Step 309, obtain the second operation request in the user request; obtain the target data set and processing items in the second operation request; obtain the authority of the current user; determine whether the processing items for the target data set are legal, if legal (yes), go to 310, if illegal (no), go to step 312.

[0166] Step 310 , execute the second operation request, and go to step 312 .

[0167] Step 311, obtain the target data set and processing items in the first operation request; obtain the authority of the current user; determine whether the processing items for the target data set are legal, if legal (yes), go to 308, if illegal (no), go to step 312.

[0168] Step 312, end.

[0169] In the embodiment of the present application, upon receiving a user request, the type of user who sent the user request is first determined, and then, based on the user type, whether the user has the authority to perform the corresponding operation in the request is determined. The corresponding operation in the user request may be an operation on the authority of other users, or an operation on a data set, and authority determination is also performed for different operations. Therefore, the method of the embodiment of the present application is more diversified and comprehensive in the management of authority, and can improve the reliability and security of authority management.

[0170] In one embodiment of the present application, the first type of user is an administrator, the user request is a first request, and the first request is to configure query permissions for ordinary users, and the query permissions are query permissions for the data set of personal information of the ordinary user. After receiving the first operation request from the administrator, it is determined that the administrator's configuration of query permissions for the ordinary user is legal, and the ordinary user's query of the data set of personal information of the ordinary user is legal, then the first operation request is executed.

[0171] In one embodiment of the present application, the first type of user is an administrator, and the first operation request is to configure the deletion permission for an ordinary user, and the deletion permission is the deletion permission for the personal information of the ordinary user. After receiving the first operation request, it is determined that the administrator's configuration of the query permission for the ordinary user is legal, and the ordinary user's deletion of the data set of the ordinary user's personal information is legal, then the first operation request is executed.

[0172] In one embodiment of the present application, the first type of user is an administrator, and the first operation request is to configure the permissions of an ordinary user, and the permission is the permission for the ordinary user to authorize the visitor to delete the visitor access data set. After receiving the first operation request, it is determined that the administrator's permission configuration for the ordinary user is legal, but the ordinary user's deletion of the visitor access data set is illegal, and the first operation request is not executed.

[0173] In one embodiment of the present application, the first type of user is a department sub-administrator, and the first operation request is to configure query permissions for other department personnel. After receiving the first operation request, if it is determined that the sub-administrator does not have configuration permissions for other department personnel, the first operation request is not executed.

[0174] In one embodiment of the present application, the first type of user is a sub-administrator, and the first operation request is a query request for a personnel information data set of other departments. After receiving the first operation request, if it is determined that the sub-administrator does not have query authority for the personnel information data set of other departments, the first operation request is not executed.

[0175] In one application scenario of the present application, it can be the management of various permissions in the data system of a financial institution. Various funds and financial products can be data sets, and various accounts can be different types of users.

[0176] In this application scenario, the administrator creates the "Fixed Income Custody Account No. 1" custody account, the "Fixed Income Institutional Account No. 1" institutional account, and the "User Name No. 1" user; creates the "Fixed Income No. 1" fund, which is used as a data set. The administrator grants the "Fixed Income Custody Account No. 1" custody account, the "Fixed Income Institutional Account No. 1" institutional account, and the "User Name No. 1" user the "Transaction Application" permission.

[0177] Trader No. 1 uses "Username No. 1" to log in. After logging in, he finds out that this account has the permission to "apply for transactions" for the "Fixed Income No. 1" data set. With the "apply for transactions" permission, Trader No. 1 can complete the corresponding operations.

[0178] Trader No. 2 uses "Username No. 2" to log in and does not have the "Transaction Application" function permission.

[0179] In one embodiment of the present application, if the type of the current user is a first type of user, the method further includes:

[0180] Get the second type of user that can be associated and authorized corresponding to the current user;

[0181] Displaying the second category of users that can be associated with authorization through a visual interface;

[0182] receiving, through the visual display interface, a selection of a second category of users to which authorization can be associated;

[0183] Obtaining a preset operable data set corresponding to the selected second category of users;

[0184] Displaying the corresponding preset operable data set through a visual interface;

[0185] receiving, through a visual display interface, a selection of a corresponding preset operable data set;

[0186] Obtain the preset processable items corresponding to the selected operational data set;

[0187] Receive selection of corresponding preset processable items through a visual display interface;

[0188] According to the selected second category users, operable data sets and processable matters, the selected second category users are associated with authorization.

[0189] The present application also provides a method for screening according to various permissions and performing visual display. In one embodiment of the present application, for example Figure 4 As shown in the figure, if you log in to the system with an administrator account, you can see the "Sub-Administrator" box, "Ordinary User" box, and "Guest" box. The administrator can create new accounts such as "Sub-Administrator 1", "Ordinary User 2", and "Guest M" through the above selection boxes / input boxes.

[0190] like Figure 5 As shown in the figure, the user creates a sub-administrator 1 through the "Sub-administrator" box. On the left, there are multiple selectable operations such as "Modify", "Add", "Synchronize", and "Delete". After selecting any operation, such as "Modify", the following will appear: Figure 6Various data sets shown, such as personal information, transaction product information, etc.

[0191] The use of visual display can facilitate user configuration and provide convenience to users.

[0192] Figure 2 , Figure 3 FIG. 1 is a flowchart of a method for managing rights in one embodiment. It should be understood that although Figure 2 , Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0193] In one embodiment, Figure 7 As shown, a rights management device is provided, comprising:

[0194] A receiving unit 710, configured to receive a user request;

[0195] An acquisition unit 720 is used to acquire the type of the user request;

[0196] The acquisition unit 720 is further configured to acquire the type of the current user who sends the first request if the user request is the first request;

[0197] The acquisition unit 720 is further configured to acquire the target user, target data, and target processing items in the first request if the type of the current user is a first type of user;

[0198] A judging unit 730, configured to judge whether the first request is legal according to the target user, target data and target processing items;

[0199] An execution unit 740, configured to execute the first request if the first request is legal;

[0200] The first request includes an associated authorization operation for a target user, and the associated authorization operation is to grant the target user the authority to perform target processing on the target data set.

[0201] In the embodiment of the present application, the judging unit 740 is further configured to:

[0202] Obtaining the type and identity information of the target user;

[0203] If the target user is a second type of user, determining whether the authority of the current user includes the associated authorization operation for the target user according to the identity information;

[0204] If it includes an associated authorization operation for the target user, the first request is determined to be legal.

[0205] The determining unit 730 is further configured to:

[0206] According to the identity information of the target user, determine whether the current user's permissions include the target user;

[0207] If the target user is included, obtaining the preset authority of the target user, where the preset authority of the target user is the authority to perform preset processing items on the preset data set;

[0208] Determining whether the preset permissions of the target user match the permissions for performing target processing on the target data set in the associated authorization operation;

[0209] If they match, it is determined that the permissions of the current user include the associated authorization operation for the target user.

[0210] The execution unit 740 is further configured to:

[0211] The target user's authority is associated and authorized so that the target user has the authority to perform the target processing on the target data set.

[0212] In the embodiment of the present application, the user request is the second request, then:

[0213] The acquisition unit 720 is further configured to acquire the type and identity information of the current user who sends the second request;

[0214] The acquisition unit 720 is further configured to acquire the target data and target processing items in the second request if the type of the current user is a second type of user;

[0215] The acquisition unit 720 is further configured to acquire the preset authority of the current user, where the preset authority of the current user is the authority to perform preset processing items on a preset data set;

[0216] The determining unit 730 is further configured to determine whether the preset authority of the current user matches the target data and target processing items in the second request;

[0217] The execution unit 740 is further configured to execute the second request if a match is found;

[0218] The second request is a request for performing target processing on the target data set.

[0219] In the embodiment of the present application, if the user request is the third request, then:

[0220] The acquisition unit 720 is further configured to acquire the type of the current user who sends the first request;

[0221] The acquisition unit 720 is further configured to acquire the reference user in the third request and the associated authorization operation on the reference user if the type of the current user is a first type of user,

[0222] The associated authorization operation for the reference user is to grant the reference user permission, so that the reference user can grant the target user permission to perform target processing on the target data set;

[0223] The acquisition unit 720 is further configured to acquire the preset authority of the current user, where the preset authority of the current user is a preset reference user and a preset associated authorization operation for the preset reference user;

[0224] The determining unit 730 is further configured to determine whether the preset authority of the current user matches the target data and target processing items in the third request;

[0225] The execution unit 740 is further configured to execute the third request if a match is found;

[0226] The third request is an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user authority, so that the reference user can grant the target user authority to perform target processing on the target data set.

[0227] In the embodiment of the present application, the judgment unit is also used for:

[0228] If the user request is a first request and the user sending the user request is a second type of user, then the first request is determined to be illegal;

[0229] If the user request is the second request and the user sending the user request is a third-category user, then determining that the second request is illegal;

[0230] If the user request is a first request, the user sending the user request is a first-category user, but the target user in the first request is a third-category user, then the first request is determined to be illegal;

[0231] If the user request is a third request, the user sending the user request is a first-category user, but the reference user in the third request is a second-category user or a third-category user, then the third request is determined to be illegal;

[0232] The second request is a request to perform target processing on the target data set.

[0233] The third request is an associated authorization operation on the reference user, and the associated authorization operation on the reference user is to grant the reference user authority, so that the reference user can grant the target user authority to perform target processing on the target data set.

[0234] In the embodiment of the present application, if the type of the current user is a first type of user,

[0235] The acquisition unit 720 is also used to acquire the second type of user that can be associated and authorized corresponding to the current user;

[0236] The display unit is also used to display the second category of users that can be associated and authorized through a visual interface;

[0237] The receiving unit 710 is also used to receive a selection of a second type of user that can be associated and authorized through a visual display interface;

[0238] The acquisition unit 720 is further used to acquire a preset operable data set corresponding to the selected second type of user;

[0239] The display unit is also used to display the corresponding preset operable data set through a visual interface;

[0240] The receiving unit 710 is further configured to receive a selection of a corresponding preset operable data set through a visual display interface;

[0241] The acquisition unit 720 is also used to acquire the preset processable items corresponding to the selected operable data set;

[0242] The receiving unit 710 is also used to receive a selection of a corresponding preset processable item through a visual display interface;

[0243] The execution unit 740 is further configured to perform association authorization on the selected second category user according to the selected second category user, the operable data set, and the processable matters.

[0244] In the embodiment of the present application, different permission verifications are performed for different user types, making permission management more rigorous and avoiding problems such as system downtime caused by inappropriate operations on important data sets due to inappropriate permission configuration. In the embodiment of the present application, different permission verifications are performed for different user types, making permission management more hierarchical and meeting the permission requirements of different user types.

[0245] Fig. 9 FIG. 1 is a schematic diagram of an application environment in an embodiment of the present application. Fig. 9 As shown, the servers can be two servers, and nginx servers, applications and databases are deployed on both servers. The application and database can be the permission management device and the required database in the embodiment of the present application. In the case of dual-machine deployment, the received requests, such as permission configuration requests for other users, operation requests for data sets, etc., are evenly routed to applications on different servers for separate execution through the load balancing routing function of nginx. Similarly, applications and databases are deployed on two machines, which can avoid serious single point problems. When one of the servers goes down, related services can still be provided, thereby improving the reliability of the system.

[0246] In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: receiving a user request; obtaining the type of the user request; if the user request is a first request, obtaining the type of a current user who sends the first request; if the type of the current user is a first-class user, obtaining a target user, target data, and target processing items in the first request; judging whether the first request is legal based on the target user, target data, and target processing items; executing the first request if the first request is legal; wherein the first request includes an associated authorization operation for the target user, and the associated authorization operation is to grant the target user the authority to perform target processing items on the target data set.

[0247] In one embodiment, when the processor executes the computer program, the steps of the above method are also implemented, which will not be described in detail here.

[0248] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: receiving a user request; obtaining the type of the user request; if the user request is a first request, obtaining the type of the current user who sends the first request; if the current user is a first-class user, obtaining the target user, target data and target processing items in the first request; judging whether the first request is legal based on the target user, target data and target processing items; executing the first request if the first request is legal; wherein the first request includes an associated authorization operation for the target user, and the associated authorization operation is to grant the target user the authority to perform target processing items on the target data set.

[0249] In one embodiment, when the computer program is executed by the processor, the steps of the above method are also implemented, which will not be described in detail here.

[0250] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the following steps: receiving a user request; obtaining the type of the user request; if the user request is a first request, obtaining the type of the current user who sends the first request; if the type of the current user is a first-class user, obtaining the target user, target data, and target processing items in the first request; judging whether the first request is legal according to the target user, target data, and target processing items; if the first request is legal, executing the first request; wherein the first request includes an associated authorization operation for the target user, and the associated authorization operation is to grant the target user the authority to perform target processing items on the target data set.

[0251] In one embodiment, when the computer program product or computer program is executed, the steps of the above method are also implemented, which will not be described in detail here.

[0252] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0253] It should be noted that, in this article, relational terms such as "first" and "second" 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0254] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A rights management method, characterized in that: The method comprises: Receive user requests; Acquire the type of the user request, the type of the user request includes a first request, a second request and a third request, the first request includes an associated authorization operation for a target user, the associated authorization operation is to grant the target user the authority to perform target processing items on the target data set, the second request is a request to perform target processing items on the target data set, and the third request is an associated authorization operation for a reference user, the associated authorization operation for the reference user is to grant the reference user authority, so that the reference user can grant the target user the authority to perform target processing items on the target data set; If the user request is a first request, obtaining the type of the current user who sends the first request, wherein the user types include first-type users, second-type users, and third-type users, the first-type users refer to users who configure other user permissions, the second-type users refer to users who are configured with permissions, and the third-type users refer to users who cannot be configured with permissions; If the type of the current user is a first type of user, obtaining the target user, target data, and target processing items in the first request; Determining whether the first request is legal according to the target user, target data, and target processing matters; If the first request is legal, executing the first request; The determining whether the first request is legal includes: Obtaining the type and identity information of the target user; If the target user is a second type of user, determining whether the authority of the current user includes the associated authorization operation for the target user according to the identity information; If the first request includes an associated authorization operation for the target user, it is determined that the first request is legal.

2. The method according to claim 1, characterized in that The determining whether the permissions of the current user include the associated authorization operation for the target user includes: According to the identity information of the target user, determine whether the current user's permissions include the target user; If the target user is included, obtaining the preset authority of the target user, where the preset authority of the target user is the authority to perform preset processing items on the preset data set; Determine whether the preset permissions of the target user match the permissions for performing target processing on the target data set in the associated authorization operation; If they match, it is determined that the permissions of the current user include the associated authorization operation for the target user.

3. The method according to claim 2, characterized in that The executing the first request includes: The target user's authority is associated and authorized so that the target user has the authority to perform the target processing on the target data set.

4. The method according to claim 1, characterized in that: The user request is the second request, then: Obtaining the type and identity information of the current user who sends the second request; If the type of the current user is a second type of user, obtaining the target data and target processing items in the second request; Obtaining the preset authority of the current user, where the preset authority of the current user is the authority to perform preset processing items on a preset data set; Determining whether the preset permissions of the current user match the target data and target processing items in the second request; If a match is found, the second request is executed.

5. The method according to claim 1, characterized in that If the user request is the third request, then: then obtaining the type of the current user who sends the third request; If the type of the current user is a first type of user, then obtaining the reference user in the third request and the associated authorization operation for the reference user, The associated authorization operation for the reference user is to grant the reference user permission, so that the reference user can grant the target user permission to perform target processing on the target data set; Acquire preset permissions of the current user, where the preset permissions of the current user are preset reference users and preset associated authorization operations for the preset reference users; Determining whether the preset permissions of the current user match the target data and target processing items in the third request; If there is a match, the third request is executed.

6. The method according to claim 1, characterized in that The method further comprises: If the user request is a first request and the user sending the user request is a second type of user, then the first request is determined to be illegal; If the user request is the second request and the user sending the user request is a third-category user, then it is determined that the second request is illegal; If the user request is a first request, the user sending the user request is a first-category user, but the target user in the first request is a third-category user, then the first request is determined to be illegal; If the user request is a third request, and the user sending the user request is a first-category user, but the reference user in the third request is a second-category user or a third-category user, then it is determined that the third request is illegal.

7. The method according to claim 1, characterized in that If the type of the current user is a first type of user, the method further includes: Get the second type of user that can be associated and authorized corresponding to the current user; Displaying the second category of users that can be associated with authorization through a visual interface; receiving, through the visual display interface, a selection of a second category of users to which authorization can be associated; Obtaining a preset operable data set corresponding to the selected second category of users; Displaying the corresponding preset operable data set through a visual interface; receiving, through a visual display interface, a selection of a corresponding preset operable data set; Obtain the preset processable items corresponding to the selected operational data set; Receive selection of corresponding preset processable items through a visual display interface; According to the selected second category users, operable data sets and processable matters, the selected second category users are associated with authorization.

8. A rights management device, characterized in that: The device comprises: A receiving unit, used for receiving a user request; an acquisition unit, configured to acquire a type of the user request, wherein the type of the user request includes a first request, a second request, and a third request, wherein the first request includes an associated authorization operation on a target user, wherein the associated authorization operation is to grant the target user the authority to perform a target processing item on a target data set, wherein the second request is a request to perform a target processing item on a target data set, and wherein the third request is an associated authorization operation on a reference user, wherein the associated authorization operation on a reference user is to grant the reference user authority, so that the reference user can grant the target user the authority to perform a target processing item on the target data set; The acquisition unit is further configured to, if the user request is a first request, acquire the type of the current user who sends the first request, wherein the user types include first-type users, second-type users, and third-type users, wherein the first-type users refer to users who configure other user permissions, the second-type users refer to users who are configured with permissions, and the third-type users refer to users who cannot be configured with permissions; The acquisition unit is further configured to acquire the target user, target data and target processing items in the first request if the type of the current user is a first type of user; A judging unit, configured to judge whether the first request is legal according to the target user, target data and target processing items; an execution unit, configured to execute the first request if the first request is legal; The first request includes an associated authorization operation for a target user, and the associated authorization operation is to grant the target user the authority to perform target processing on the target data set; Wherein, the judging unit is further used for: Obtaining the type and identity information of the target user; If the target user is a second type of user, determining whether the authority of the current user includes the associated authorization operation for the target user according to the identity information; If it includes an associated authorization operation for the target user, the first request is determined to be legal.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Permission control method based on multi-layer hierarchy system

    CN105787317A

  • User permission management method and device, computer equipment and storage medium

    CN110298167A

  • Data processing method, computing device and storage medium

    CN111767534A