User authority configuration method, business resource access method and device

By displaying the function permission list on the resource management server and allowing users to turn on permissions, the problem of cumbersome and complex permission configuration in the existing technology is solved, quick and simple configuration of user permissions is realized, and user experience is improved.

CN112417428BActive Publication Date: 2024-08-30BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011299418.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2024-08-30
Estimated Expiration
2040-11-18

AI Technical Summary

Technical Problem

The methods of creating permission policies in the existing technology are either cumbersome and error-prone, or have high requirements on users, resulting in poor user experience.

Method used

Provides a method for configuring user permissions. The resource management server responds to the user's business line selection, displays a list of functional permissions, and allows users to turn on functional permissions to configure usage permissions for API interfaces, simplifying the permission configuration process.

Benefits of technology

It realizes quick and simple configuration of user permissions, improves user experience, and reduces user learning costs and operational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112417428B
    Figure CN112417428B
Patent Text Reader

Abstract

The present application provides a method for configuring user rights, a method for accessing business resources, and a device, wherein the method for configuring user rights is applied to a resource management server, and the method includes: in response to a first user's selection operation on a first business line on a rights configuration page, displaying a list of functional rights corresponding to the first business line; the list of functional rights includes at least one functional right pre-configured to the first business line; each functional right is pre-configured with a corresponding relationship with multiple API interfaces; in response to an opening operation on the first functional right in the list of functional rights, configuring the first user with usage rights for multiple first API interfaces corresponding to the first functional right. The present application enables users to quickly and easily configure user rights, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud service technology, and in particular to a method for configuring user permissions, a method and a device for accessing business resources. Background Art

[0002] There are currently two ways to create permission policies. The first is to operate in the visual interface for adding policy statements, for example, select a service name, select interfaces one by one from the interface list corresponding to the service name, such as selecting Create Instance, starting the instance, and then clicking OK to generate the corresponding permissions. The second is to edit the permission policy code. This method has higher requirements for users, who need to be familiar with permission elements and have a clear understanding of the open-api names of business lines. You can directly edit the permission policy, or reference an existing permission policy and modify it based on the previous one.

[0003] The above two ways of creating permission policies either require configuration one by one due to the large number of interfaces, which is troublesome and prone to errors, or have high requirements on users, high user learning costs, and poor user experience. Summary of the invention

[0004] The purpose of this application is to provide a method for configuring user rights, a method and device for accessing business resources, which can enable users to quickly and easily configure user rights and improve user experience.

[0005] In a first aspect, an embodiment of the present application provides a method for configuring user permissions, which is applied to a resource management server, and the method includes: in response to a first user's selection operation on a first business line on a permission configuration page, displaying a functional permission list corresponding to the first business line; the functional permission list includes at least one functional permission pre-configured for the first business line; each functional permission is pre-configured with a corresponding relationship with multiple API interfaces; in response to an enable operation on the first functional permission in the functional permission list, configuring the first user with usage permissions for multiple first API interfaces corresponding to the first functional permission.

[0006] Furthermore, the client corresponding to the above-mentioned resource management server is configured with a permission configuration control; the permission configuration control is used to configure the permissions of product functions or the permissions of project management functions; before the step of responding to the first user's selection operation on the first business line of the permission configuration page, it also includes: in response to the first operation of the first user on the permission configuration control, displaying the permission configuration page.

[0007] Furthermore, the above-mentioned functional permission list also includes a functional status control corresponding to each functional permission; in response to an enable operation on the first functional permission in the functional permission list, the step of configuring the first user with usage permissions of multiple first API interfaces corresponding to the first functional permission includes: in response to a preset operation on the functional status control corresponding to the first functional permission, setting the current state of the first functional permission to an enabled state; binding the first functional permission in the enabled state to the identifier corresponding to the first user, and configuring the first user with usage permissions of multiple first API interfaces corresponding to the first functional permission.

[0008] Furthermore, the above-mentioned permission configuration page is also provided with a creation policy control; after the step of configuring the first user with usage permissions of multiple first API interfaces corresponding to the first functional permission in response to an enable operation on the first functional permission in the functional permission list, it also includes: in response to a click operation on the creation policy control, generating a permission policy code for the first user's usage permissions for multiple first API interfaces corresponding to the first functional permission.

[0009] Furthermore, the above-mentioned resource management server also provides a function permission setting page; before the step of responding to the first user's selection operation on the first business line of the permission configuration page, the method also includes: in response to the second user's selection operation on the second business line in the function permission setting page, displaying the editing function permission page corresponding to the second business line; the second user's authority is greater than the first user's authority; the second user has the authority to operate the said function permission setting page; in response to the editing operation of the function name, the editing operation of the permission description, the selection operation of the API interface and the saving operation on the editing function permission page, a function permission list corresponding to the second business line is generated.

[0010] Furthermore, the above-mentioned first business line includes one of the following: a cloud host product line, a virtual machine dedicated network product line, a load balancing product line and an object storage product line.

[0011] Furthermore, the above functional permissions include one of the following: user management permissions, project management permissions and policy management.

[0012] In a second aspect, an embodiment of the present application also provides a method for accessing business resources, which is applied to a resource management server, and the resource management server stores user permissions configured by the user permission configuration method described in the first aspect; the method includes: receiving an access request from a target user for a target business line; the access request carries an identifier of the target user; based on the user permissions, determining the target user permissions corresponding to the identifier of the target user; and performing access control on the access request through the target user permissions.

[0013] Furthermore, the above-mentioned step of performing access control on access requests through target user permissions includes: searching for target functional permissions corresponding to the target business line from the target user permissions; searching for permission policy codes for usage permissions of multiple target API interfaces corresponding to the target functional permissions; and running the permission policy codes to perform access control on access requests.

[0014] In the third aspect, an embodiment of the present application also provides a user permission configuration device, which is applied to a resource management server, and the device includes: a list display module, which is used to display a functional permission list corresponding to the first business line in response to a selection operation of the first user on the first business line on the permission configuration page; the functional permission list includes at least one functional permission pre-configured for the first business line; each functional permission is pre-configured with a corresponding relationship with multiple API interfaces; a permission configuration module, which is used to configure the first user with usage permissions for multiple first API interfaces corresponding to the first functional permission in the functional permission list in response to an enable operation on the first functional permission.

[0015] In a fourth aspect, an embodiment of the present application further provides a device for accessing business resources, which is applied to a resource management server, and the resource management server stores user permissions configured by the user permission configuration method described in the first aspect; the device includes: a request receiving module, which is used to receive an access request from a target user for a target business line; the access request carries an identifier of the target user; a permission search module, which is used to determine, based on the user permissions, the target user permissions corresponding to the identifier of the target user; and an access control module, which is used to perform access control on the access request through the target user permissions.

[0016] In a fifth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method described in the first aspect above.

[0017] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in the first aspect above.

[0018] In the method for configuring user rights provided in the embodiment of the present application, the resource management server first responds to the first user's selection operation on the first business line on the rights configuration page, and displays a list of functional rights corresponding to the first business line; the list of functional rights includes at least one functional right pre-configured for the first business line; each functional right is pre-configured with a corresponding relationship with multiple API interfaces; then, in response to the opening operation on the first functional right in the functional rights list, the first user is configured with the use rights of multiple first API interfaces corresponding to the first functional right. The embodiment of the present application can quickly configure user rights through the user's business line selection operation and the opening operation of functional rights, which is convenient and fast, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A flowchart of a method for configuring user permissions provided in an embodiment of the present application;

[0021] Figure 2 A flowchart of another method for configuring user rights provided in an embodiment of the present application;

[0022] Figure 3 A flowchart of a method for configuring functional permissions provided in an embodiment of the present application;

[0023] Figure 4 A flowchart of a method for accessing business resources provided in an embodiment of the present application;

[0024] Figure 5 A structural block diagram of a user rights configuration device provided in an embodiment of the present application;

[0025] Figure 6 A structural block diagram of another user rights configuration device provided in an embodiment of the present application;

[0026] Figure 7 A structural block diagram of a device for accessing business resources provided in an embodiment of the present application;

[0027] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. 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 the field without creative work are within the scope of protection of the present application.

[0029] There are currently two ways to create permission policies. The first is visual configuration. That is, by selecting Add Policy Statement in the interface, for each policy statement, you can choose whether the permission effect is to allow or deny, select a service, such as a cloud server service, and then select interfaces one by one from the interface list of the service, such as Create Instance, Start Instance, click OK, and generate the corresponding permissions. This policy means that the entity that is granted this permission has the permission to create and start instances. In this way, since there are many interfaces to choose from, users need to operate one by one. The whole process is cumbersome and error-prone, and the user experience is poor.

[0030] The second method is policy syntax. By writing permission policy statements, corresponding permissions are generated. This method has high requirements for users and requires users to learn a lot of knowledge in advance, be familiar with permission elements, and have a clear understanding of the open-api names of business lines. Directly edit permission policies, you can reference existing permission policies and modify them based on the previous ones. For example, add a permission to delete instances in the previous example, and add a "kec:StopInstances" to the Action in the previous permission policy. Or you can edit directly. This method has high learning costs and poor user experience.

[0031] Based on this, the embodiments of the present application provide a method for configuring user rights, a method and device for accessing business resources, which can enable users to quickly and easily configure user rights and improve user experience.

[0032] To facilitate understanding of the embodiments, some concepts involved in this application are first explained:

[0033] Business line: Cloud service providers will launch a variety of cloud products, such as cloud host product line, virtual machine dedicated network product line, load balancing product line, object storage product line, etc., all of which can be regarded as a business line.

[0034] Permission: refers to whether the user is allowed to perform a certain operation on a certain resource. Permissions are divided into: Allow or Deny.

[0035] A permission policy is a set of permissions described by a grammatical structure, which can accurately describe the authorized resource set, operation set, and authorization conditions. A permission policy is a simple language specification that describes a permission set.

[0036] Figure 1 A flowchart of a method for configuring user rights provided in an embodiment of the present application, the method is applied to a resource management server, and the method comprises the following steps:

[0037] Step S102: In response to a selection operation of a first user on a first business line on a permission configuration page, a function permission list corresponding to the first business line is displayed.

[0038] In actual applications, the first user may be a tenant, that is, a user who has purchased certain cloud resources or cloud products. The first user may select a business line on the permission configuration page to determine the business line for which he or she wants to configure permissions. The above-mentioned first business line may include one of the following: cloud host product line, virtual machine dedicated network product line, load balancing product line, and object storage product line. After the first user selects the first business line, the page will display a list of functional permissions corresponding to the business line.

[0039] The above functional permission list may be pre-configured, including at least one functional permission pre-configured for the first business line; the above functional permissions may include one of the following: user management permissions, project management permissions, and policy management. Each functional permission is pre-configured with a corresponding relationship with multiple API interfaces. In other words, a functional permission may include a group of API interfaces. For the specific configuration process, please refer to the subsequent instructions.

[0040] Step S104: in response to an activation operation on a first functional permission in the functional permission list, configuring usage permissions of a plurality of first API interfaces corresponding to the first functional permission for the first user.

[0041] After displaying the functional permission list corresponding to the first business line, the first user can further enable the functional permissions in the functional permission list, so that the resource management server configures the first user with the usage permissions of multiple first API interfaces corresponding to the first functional permissions. There are many ways to enable specific functional permissions, which are not specifically limited here.

[0042] In the method for configuring user rights provided in the embodiment of the present application, the resource management server first responds to the first user's selection operation on the first business line on the rights configuration page, and displays a list of functional rights corresponding to the first business line; the list of functional rights includes at least one functional right pre-configured for the first business line; each functional right is pre-configured with a corresponding relationship with multiple API interfaces; then, in response to the opening operation on the first functional right in the functional rights list, the first user is configured with the use rights of multiple first API interfaces corresponding to the first functional right. The embodiment of the present application can quickly configure user rights through the user's business line selection operation and the opening operation of functional rights, which is convenient and fast, and improves the user experience.

[0043] In order to facilitate user operations and improve user experience, the client corresponding to the resource management server is configured with a permission configuration control; the permission configuration control is used to configure the permissions of product functions or project management functions. In the embodiment of the present application, before the step of responding to the first user's selection operation on the first business line of the permission configuration page, the following steps may also be included: Figure 2 As shown:

[0044] Step S202: In response to a first operation of the first user on the permission configuration control, a permission configuration page is displayed. The first operation here may be a click operation or a long press operation on the permission configuration control.

[0045] Taking into account the convenience of user operation, in the embodiment of the present application, the above-mentioned function permission list also includes function status controls corresponding to each function permission; the above-mentioned step of configuring the first user with the use rights of multiple first API interfaces corresponding to the first function permission in response to the opening operation of the first function permission in the function permission list can be implemented in the following way:

[0046] Step S204, in response to a preset operation on a function status control corresponding to the first function permission, setting the current status of the first function permission to an enabled status;

[0047] Step S206: Bind the first functional permission in the enabled state to the identifier corresponding to the first user, and configure the first user with usage permissions of multiple first API interfaces corresponding to the first functional permission.

[0048] The identifier corresponding to the first user may be the account identifier of the first user, such as a cloud account. The first functional permission is the target functional permission selected and enabled by the first user in the functional permission list, which may be one or more. When the first functional permission is enabled, it can be bound to the identifier of the first user, thereby configuring the first user with the usage rights of multiple first API interfaces corresponding to the first functional permission.

[0049] In another embodiment, in addition to requiring the user to enable the selected target functional permission, the corresponding permission policy code can also be generated after the final confirmation. That is, in the embodiment of the present application, the above permission configuration page is also provided with a creation policy control; after the step of configuring the first user with the use permission of multiple first API interfaces corresponding to the first functional permission in response to the enable operation of the first functional permission in the functional permission list, it also includes:

[0050] Step S208: In response to a click operation on a create policy control, a permission policy code is generated for the first user's permission to use the plurality of first API interfaces corresponding to the first functional permission.

[0051] The above is the permission configuration process of the first business line selected by the first user. The following describes the configuration process of the functional permissions of the staff:

[0052] In the embodiment of the present application, the resource management server also provides a function permission setting page; before the step of responding to the first user's selection operation on the first business line of the permission configuration page, the method further includes the following steps, see Figure 3 As shown:

[0053] Step S302, in response to the second user's selection operation on the second business line in the function permission setting page, displaying an edit function permission page corresponding to the second business line;

[0054] The second user's authority is greater than that of the first user; the second user has the authority to operate the function permission setting page; the second user here is generally the staff of the resource management server, who can configure the function permissions in the API registration center in advance. The API registration center is on the operation platform, and the staff's function permission configuration process can be regarded as an operation on another client corresponding to the resource management server. First, the second user needs to select the second business line to be configured, and then the editing function permission page corresponding to the second business line will be displayed.

[0055] Step S304, in response to the editing operation of the function name, the editing operation of the permission description, the selection operation of the API interface and the saving operation on the editing function permission page, a function permission list corresponding to the second business line is generated.

[0056] In actual applications, a functional permission or a group of functional permissions may include a group of API interfaces, and a business line may be configured with multiple functional permissions. The second user can perform operations on the editing functional permissions page corresponding to the second business line, such as editing the function name, editing the detailed description of the function, that is, the permission description, and selecting the API interface to be configured for the functional permission, usually multiple, and perform the above operation process multiple times to generate multiple functional permissions corresponding to the second business line, thereby generating a functional permission list corresponding to the second business line.

[0057] For example, if the function permission name is: Sub-user group management, the API interfaces include: CreateUser (create sub-user), UpdateUser (update sub-user), DeleteUser (delete sub-user), GetUser (get information of a sub-user), ListUsers (get all sub-users). For business line A, the corresponding function permissions include: Sub-user group management, project management, policy management, etc.

[0058] In addition, if there is a functional iteration in the business line, such as a new interface, you only need to modify the API interface list corresponding to the functional permission in the API registration center, which is completely transparent to users. In this way, the modification of the functional iteration permission policy of the business line is completely transparent to users and users do not perceive it.

[0059] In the configuration method of user rights provided in the embodiment of the present application, after the user selects a business line, the function permission list and status control corresponding to the business line will be displayed. The user only needs to choose to turn on or off the function permission in the function permission list to configure all interfaces that the function permission needs to access at one time, thereby realizing the permission configuration, which is convenient and accurate, and improves the user experience of the user. The user can quickly, accurately and clearly realize the function permission he wants to configure without worrying about which interfaces the function permission needs to use.

[0060] Based on the above user rights configuration method, the embodiment of the present application also provides a method for accessing business resources, which is applied to a resource management server. The resource management server stores the user rights configured by the user rights configuration method described in the above embodiment, that is, the correspondence between each user identifier and its user rights. The user rights include the functional rights corresponding to each business line, and the functional rights correspond to the permission policy code. Figure 4 As shown, the method comprises the following steps:

[0061] Step S402: receiving an access request from a target user for a target business line; the access request carries an identifier of the target user.

[0062] The target user identifier includes the target user's account identifier, which may be a cloud account.

[0063] Step S404: determining the target user rights corresponding to the target user's identifier based on the user rights.

[0064] According to the correspondence between each user identification and its authority pre-stored in the server, the target user authority corresponding to the target user identification can be found.

[0065] Step S406: performing access control on the access request according to the target user's authority.

[0066] Specifically, you can find the target functional permissions corresponding to the target business line from the target user permissions; then find the permission policy code for the usage permissions of multiple target API interfaces corresponding to the target functional permissions; finally, run the permission policy code to perform access control on the access request.

[0067] In the method for accessing business resources provided in the embodiment of the present application, access control can be performed on the resource access request of the target user through the user permissions configured in the above method embodiment.

[0068] Based on the method embodiment of the above-mentioned method for configuring user rights, the embodiment of the present application also provides a user rights configuration device, which is applied to a resource management server, see Figure 5 As shown, the device includes: a list display module 502, which is used to display a functional permission list corresponding to the first business line in response to a selection operation of the first user on the first business line on the permission configuration page; the functional permission list includes at least one functional permission pre-configured for the first business line; each functional permission is pre-configured with a corresponding relationship with multiple API interfaces; a permission configuration module 504, which is used to configure the use rights of multiple first API interfaces corresponding to the first functional permission for the first user in response to an enable operation on the first functional permission in the functional permission list.

[0069] In another possible implementation, the client corresponding to the resource management server is configured with a permission configuration control; the permission configuration control is used to configure the permission of the product function or the permission of the project management function; the device further includes a page display module 506 for: in response to the first user's first operation on the permission configuration control, displaying the permission configuration page, see Figure 6 shown.

[0070] In another possible implementation, the above-mentioned functional permission list also includes a functional status control corresponding to each functional permission; the above-mentioned permission configuration module 504 is also used to: in response to a preset operation of the functional status control corresponding to the first functional permission, set the current state of the first functional permission to an on state; bind the first functional permission in the on state to the identifier corresponding to the first user, and configure the first user with usage rights of multiple first API interfaces corresponding to the first functional permission.

[0071] In another possible implementation, the above-mentioned permission configuration page is also provided with a creation policy control; the above-mentioned device also includes a code generation module 508 for: in response to a click operation on the creation policy control, generating a permission policy code for the first user's usage rights for multiple first API interfaces corresponding to the first functional permission.

[0072] In another possible implementation, the resource management server also provides a function permission setting page; the device also includes: a list generation module 510 is used to: in response to the second user's selection operation on the second business line in the function permission setting page, display the editing function permission page corresponding to the second business line; the second user's authority is greater than the first user's authority; the second user has the authority to operate the function permission setting page; in response to the editing operation of the function name, the editing operation of the permission description, the selection operation of the API interface and the save operation on the editing function permission page, generate a function permission list corresponding to the second business line.

[0073] In another possible implementation, the first business line includes one of the following: a cloud host product line, a virtual machine dedicated network product line, a load balancing product line, and an object storage product line.

[0074] In another possible implementation, the above functional authority includes one of the following: user management authority, project management authority and policy management.

[0075] The user rights configuration device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned user rights configuration method embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the user rights configuration device, reference may be made to the corresponding contents in the aforementioned user rights configuration method embodiment.

[0076] Based on the method embodiment of the above-mentioned method for accessing business resources, the embodiment of the present application also provides a device for accessing business resources, which is applied to a resource management server, and the resource management server stores user rights configured by the above-mentioned method for configuring user rights; see Figure 7As shown, the device includes: a request receiving module 702, which is used to receive an access request from a target user for a target business line; the access request carries an identifier of the target user; an authority search module 704, which is used to determine the target user authority corresponding to the identifier of the target user based on the user authority; and an access control module 706, which is used to perform access control on the access request through the target user authority.

[0077] In another possible implementation, the access control module 706 is also used to: search for target functional permissions corresponding to the target business line from the target user permissions; search for permission policy codes for usage permissions of multiple target API interfaces corresponding to the target functional permissions; and run permission policy codes to perform access control on access requests.

[0078] The implementation principle and technical effects of the business resource access device provided in the embodiment of the present application are the same as those of the aforementioned business resource access method embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the business resource access device, reference may be made to the corresponding contents in the aforementioned business resource access method embodiment.

[0079] The present application also provides an electronic device, such as Figure 8 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 81 and a memory 80, the memory 80 stores computer executable instructions that can be executed by the processor 81, and the processor 81 executes the computer executable instructions to implement the above method.

[0080] exist Figure 8 In the illustrated embodiment, the electronic device further includes a bus 82 and a communication interface 83 , wherein the processor 81 , the communication interface 83 and the memory 80 are connected via the bus 82 .

[0081] Among them, the memory 80 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 83 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 82 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 82 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0082] The processor 81 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 81. The above processor 81 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 81 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.

[0083] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.

[0084] The computer program products of the user authority configuration method, business resource access method, device and electronic device provided in the embodiments of the present application include a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0085] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present application.

[0086] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0087] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0088] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for configuring user permissions. It is characterized in that The method is applied to a resource management server, and the method comprises: The resource management server provides a function permission setting page; in response to a selection operation of the second user on the second business line in the function permission setting page, displays an edit function permission page corresponding to the second business line; the second user has the right to operate the function permission setting page; in response to an edit operation on the function name, an edit operation on the permission description, a selection operation on the API interface and a save operation on the edit function permission page, generates a function permission list corresponding to the second business line; In response to a selection operation of a first user on a first business line on a permission configuration page, a function permission list corresponding to the first business line is displayed; the function permission list includes at least one function permission pre-configured for the first business line; each function permission is pre-configured with a corresponding relationship with a plurality of API interfaces; the second user's permission is greater than the first user's permission; In response to an activation operation on a first functional permission in the functional permission list, configuring, for the first user, usage permissions of a plurality of first API interfaces corresponding to the first functional permission; The permission configuration page is also provided with a creation policy control; in response to a click operation on the creation policy control, a permission policy code is generated for the first user's permission to use multiple first API interfaces corresponding to the first functional permission.

2. The method according to claim 1, It is characterized in that The client corresponding to the resource management server is configured with a permission configuration control; the permission configuration control is used to configure the permission of the product function or the permission of the project management function; Before the step of responding to the first user's selection operation on the first business line on the permission configuration page, the method further includes: In response to a first operation of the first user on the permission configuration control, a permission configuration page is displayed.

3. The method according to claim 1, It is characterized in that The function permission list also includes a function status control corresponding to each function permission; In response to an enabling operation on a first functional permission in the functional permission list, the step of configuring, for the first user, usage permissions of a plurality of first API interfaces corresponding to the first functional permission includes: In response to a preset operation on a function status control corresponding to the first function permission, setting a current status of the first function permission to an enabled status; The first function permission in the enabled state is bound to the identifier corresponding to the first user, and the first user is configured with usage permissions of multiple first API interfaces corresponding to the first function permission.

4. The method according to claim 1, It is characterized in that The first business line includes one of the following: a cloud host product line, a virtual machine dedicated network product line, a load balancing product line, and an object storage product line.

5. The method according to claim 1, It is characterized in that The functional permissions include one of the following: user management permissions, project management permissions, and policy management.

6. A method for accessing business resources, It is characterized in that The method is applied to a resource management server, wherein the resource management server stores user rights configured by the user rights configuration method according to any one of claims 1 to 5; the method comprises: receiving an access request from a target user for a target business line; the access request carries an identifier of the target user; Based on the user authority, determining the target user authority corresponding to the identifier of the target user; Access control is performed on the access request according to the target user authority.

7. The method according to claim 6, It is characterized in that The step of performing access control on the access request by using the target user's authority comprises: Searching for the target functional authority corresponding to the target business line from the target user authority; Find the permission policy codes of the usage permissions of multiple target API interfaces corresponding to the target function permissions; The permission policy code is run to perform access control on the access request.

8. A user rights configuration device, It is characterized in that The device is applied to a resource management server, and comprises: The resource management server provides a function permission setting page; A function permission configuration module, configured to display an edit function permission page corresponding to the second business line in response to a selection operation of the second user on the function permission setting page; the second user has the right to operate the function permission setting page; and generate a function permission list corresponding to the second business line in response to an edit operation on a function name, an edit operation on a permission description, a selection operation on an API interface, and a save operation on the edit function permission page; A list display module, configured to, in response to a selection operation of a first user on a first business line on a permission configuration page, display a function permission list corresponding to the first business line; the function permission list includes at least one function permission pre-configured for the first business line; each function permission is pre-configured with a corresponding relationship with a plurality of API interfaces; the second user's permission is greater than the first user's permission; a permission configuration module, configured to configure, for the first user, permission to use a plurality of first API interfaces corresponding to the first function permission in response to an enable operation on the first function permission list; The permission configuration page is also provided with a creation policy control; A code generation module is used to generate a permission policy code for the first user's permission to use multiple first API interfaces corresponding to the first functional permission in response to a click operation on the create policy control.

9. A device for accessing business resources, It is characterized in that The device is applied to a resource management server, wherein the resource management server stores user rights configured by the user rights configuration method according to any one of claims 1 to 5; the device comprises: A request receiving module, configured to receive an access request from a target user for a target business line; the access request carries an identifier of the target user; A permission search module, used to determine the target user permission corresponding to the target user's identifier based on the user permission; The access control module is used to perform access control on the access request according to the target user's authority.

10. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 5 or 6 to 7.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in any one of claims 1-5 or 6-7.

Citation Information

Patent Citations

  • Permission setting method and device, and electronic equipment

    CN106055968A

  • Authority visual configuration control method and device in an information system, terminal and storage medium

    CN110443010A