Multi-tenant hierarchical authority management method and device, equipment and medium

By creating independent database space and authentication systems in a multi-tenant environment, allocating and managing system permissions, the challenges of permission management for different tenants in a multi-tenant architecture are solved, flexible and secure permission management is achieved, and operators are reduced Cost improves service quality and efficiency.

CN119026151APending Publication Date: 2024-11-26INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411061039.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In a multi-tenant architecture, how to assign appropriate system permissions to different tenants and allow further allocation and management of permissions within the tenant is an urgent problem to be solved, especially in the scenario of providing services across operators, where an effective service orchestration system is lacking in a scenario where services are provided across operators are provided. resulting in high funding and time costs.

Method used

By creating a multi-tenant environment, using database slicing to allocate independent database space for each tenant, and assigning system permissions through the central management console, defining tenant administrator and ordinary user roles, supporting independent authentication and logging, ensuring user identity and The independence and security of operation logs are based on business requirements, and independent authentication is achieved using OAuth and JWT technologies, and logging is performed by Syslog system.

Benefits of technology

It realizes flexible permission management, ensures the independence and security of user identity and operation logs, reduces operators' costs and time investment, improves efficient sharing and utilization of resources, and improves the quality and efficiency of overall services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026151A_ABST
    Figure CN119026151A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-tenant hierarchical authority management method and device, equipment and a medium, belongs to the technical field of user management of a software system, and aims to solve the technical problem of how to allocate appropriate system authorities for different tenants and allow the tenants to further allocate and manage authorities internally. According to the technical scheme, the method comprises the steps that a multi-tenant environment is created, a plurality of tenants are created in a system through database slices, an independent database space is distributed to each tenant, and it is ensured that data between the tenants are mutually isolated; distributing system permissions: distributing the system permissions to different tenants by a system administrator through a central management console; managing internal roles of the tenants: defining two roles of a tenant administrator and a common user in each tenant; independent authentication: supporting each tenant to log in through an authentication system of the tenant, and ensuring independence and security of a user identity; each tenant user is connected to an independent log recording system for log recording.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of user management of software systems, and in particular to a multi-tenant hierarchical authority management method, device, equipment and medium. Background Art

[0002] In modern software systems, multi-tenant architecture has become an important means to achieve resource sharing and cost savings. Multi-tenant architecture allows multiple tenants (i.e. independent user groups or organizations) to share the same software system and infrastructure, but the data and operation permissions of each tenant are isolated from each other.

[0003] In actual applications, multi-tenant architecture is often used in various cloud services and enterprise application scenarios. Each tenant can enjoy customized services and functions just like using an independent system, without having to bear the high cost of system deployment and maintenance. However, multi-tenant environment also brings new challenges, especially in terms of permission management.

[0004] The business scope of a telecom operator A includes cross-operator service scenarios, such as selling or renting out some of its transmission network equipment or base stations to other telecom operators B, C, D, etc. in the country. However, these operators do not have a matching service orchestration (SOM) system to activate, configure and manage these equipment built by telecom operator A. If these operators purchase and build such a system separately, they will face high capital and time costs. Therefore, users need a technical solution that can rent the management system that telecom operator A has already put into operation to telecom operators B, C, D, etc.

[0005] Therefore, how to assign appropriate system permissions to different tenants and allow further allocation and management of permissions within tenants is a technical problem that needs to be solved urgently. Summary of the invention

[0006] The technical task of the present invention is to provide a multi-tenant hierarchical permission management method, device, equipment and medium to solve the problem of how to assign appropriate system permissions to different tenants and allow further allocation and management of permissions within the tenants.

[0007] The technical task of the present invention is achieved in the following way: a multi-tenant hierarchical rights management method, the method is as follows:

[0008] Create a multi-tenant environment: Use database slicing to create multiple tenants in the system. Each tenant is allocated an independent database space to ensure that the data between tenants is isolated from each other.

[0009] Assign system permissions: The system administrator assigns system permissions to different tenants through the central management console. The system administrator manages the creation, modification, and deletion of tenants and assigns system operation permissions.

[0010] Manage tenant internal roles: define two roles in each tenant: tenant administrator and common user. The tenant administrator is used to create, modify, and delete users in the corresponding tenant, manage the system permissions that the system administrator has assigned to the corresponding tenant, and assign the permissions that the system administrator has assigned to the tenant to the user.

[0011] Independent authentication: Supports each tenant to log in through its own authentication system to ensure the independence and security of user identity;

[0012] Independent log: Each tenant user is connected to an independent logging system for logging, ensuring the independence and security of operation logs.

[0013] As a preference, permission allocation is based on tenants’ business needs and usage scenarios, ensuring that every tenant can use system functions;

[0014] Among them, permission allocation includes data access rights, operation rights and functional module rights; system administrators can adjust tenants' permission configuration at any time according to needs.

[0015] Preferably, tenant administrators create new user roles and assign corresponding permissions based on specific business needs to ensure flexibility and controllability of internal permission management.

[0016] As a preferred embodiment, independent authentication specifically includes: independent authentication management for tenants, implementing independent authentication management for tenants, connecting to respective authentication systems through independent authentication APIs of different tenants for authentication login;

[0017] Among them, the authentication system is implemented based on OAuth technology and JWT technology.

[0018] Preferably, independent logs are specifically: independent log management for tenants, implementing independent log management for tenants, and logging through different tenants connecting to their respective Syslog systems.

[0019] A multi-tenant hierarchical rights management device, the device comprising:

[0020] The creation module is used to create multiple tenants in the system using database slices. Each tenant is allocated an independent database space to ensure that the data between tenants is isolated from each other.

[0021] The allocation module is used to allocate system permissions to different tenants through the central management console; the system administrator manages the creation, modification, deletion and allocation of system operation permissions of tenants;

[0022] The management module is used to define two roles, tenant administrator and common user, in each tenant. The tenant administrator is used to create, modify and delete users in the corresponding tenant, manage the system permissions that the system administrator has assigned to the corresponding tenant, and redistribute the permissions that the system administrator has assigned to the tenant to the user.

[0023] The authentication module is used to support each tenant to log in through its own authentication system to ensure the independence and security of user identity;

[0024] The log module is used to connect each tenant user to an independent logging system for logging, ensuring the independence and security of operation logs.

[0025] As a preference, the allocation module is based on the tenant’s business needs and usage scenarios, ensuring that each tenant can use the system functions;

[0026] Among them, permission allocation includes data access rights, operation rights and functional module rights; system administrators can adjust tenants' permission configuration at any time according to needs.

[0027] Preferably, the authentication module is to implement independent authentication management for tenants, and connect to each tenant's authentication system through independent authentication APIs for different tenants to perform authentication login;

[0028] Among them, the authentication system is implemented based on OAuth technology and JWT technology;

[0029] The log module is for independent log management of tenants. It implements independent log management for tenants and records logs by connecting different tenants to their respective Syslog systems.

[0030] An electronic device comprising: a memory and at least one processor;

[0031] Wherein, the memory stores a computer program;

[0032] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the multi-tenant hierarchical permission management method as described above.

[0033] A computer-readable storage medium stores a computer program, which can be executed by a processor to implement the multi-tenant hierarchical permission management method as described above.

[0034] The multi-tenant hierarchical rights management method, device, equipment and medium of the present invention have the following advantages:

[0035] (i) The present invention allocates appropriate system permissions to different tenants and allows further allocation and management of permissions within tenants, thereby achieving flexible permission management;

[0036] (ii) The tenant users of the present invention require an independent authentication system to ensure the independence and security of user identities and to achieve independent user authentication;

[0037] (iii) Each tenant of the present invention requires an independent logging system to ensure the security and privacy of the operation log and to achieve independent logging;

[0038] (IV) The present invention not only meets the needs of each operator for user data independence and security through the creation of a multi-tenant environment and hierarchical management of permissions, but also greatly reduces the cost and time investment of other operators, realizes efficient sharing and utilization of resources, and improves the quality and efficiency of the overall service. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The present invention is further described below in conjunction with the accompanying drawings.

[0040] Attached Figure 1 A flowchart of a multi-tenant hierarchical permission management method;

[0041] Attached Figure 2 This is a schematic diagram of system functions in Example 3;

[0042] Attached Figure 3 The system administrator manages tenants and the tenant manages user diagram in Example 3;

[0043] Attached Figure 4 This is the independent login authentication and log synchronization function in Example 3. DETAILED DESCRIPTION

[0044] The multi-tenant hierarchical rights management method, device, equipment and medium of the present invention are described in detail below with reference to the drawings and specific embodiments of the specification.

[0045] Embodiment 1:

[0046] As attached Figure 1 As shown, this embodiment provides a multi-tenant hierarchical rights management method, the method is specifically as follows:

[0047] S1. Create a multi-tenant environment: Use database slicing to create multiple tenants in the system. Each tenant is allocated an independent database space to ensure that the data between tenants is isolated from each other.

[0048] S2. Assign system permissions: The system administrator assigns system permissions to different tenants through the central management console. The system administrator manages the creation, modification, deletion and assignment of system operation permissions for tenants.

[0049] S3. Manage tenant internal roles: In each tenant, define two roles: tenant administrator and common user. The tenant administrator is used to create, modify, and delete users in the corresponding tenant, manage the system permissions that the system administrator has assigned to the corresponding tenant, and assign the permissions that the system administrator has assigned to the tenant to the user.

[0050] S4, Independent Authentication: Supports each tenant to log in through its own authentication system to ensure the independence and security of user identity;

[0051] S5. Independent log: Each tenant user is connected to an independent logging system for logging, ensuring the independence and security of the operation log.

[0052] The permission allocation in this embodiment is based on the tenant's business needs and usage scenarios, ensuring that each tenant can use system functions;

[0053] Among them, permission allocation includes data access rights, operation rights and functional module rights; system administrators can adjust tenants' permission configuration at any time according to needs.

[0054] The tenant administrator in this embodiment creates new user roles and assigns corresponding permissions based on specific business needs, ensuring the flexibility and controllability of internal permission management.

[0055] The independent authentication in step S4 of this embodiment specifically includes: independent authentication management for tenants, implementing independent authentication management for tenants, connecting to their respective authentication systems through independent authentication APIs for different tenants to perform authentication login;

[0056] Among them, the authentication system is implemented based on OAuth technology and JWT technology.

[0057] The independent log in step S5 of this embodiment specifically includes: independent log management for tenants, implementing independent log management for tenants, and connecting different tenants to their respective Syslog systems for log recording.

[0058] Embodiment 2:

[0059] This embodiment provides a multi-tenant hierarchical rights management device, which includes:

[0060] The creation module is used to create multiple tenants in the system using database slices. Each tenant is allocated an independent database space to ensure that the data between tenants is isolated from each other.

[0061] The allocation module is used to allocate system permissions to different tenants through the central management console; the system administrator manages the creation, modification, deletion and allocation of system operation permissions of tenants;

[0062] The management module is used to define two roles, tenant administrator and common user, in each tenant. The tenant administrator is used to create, modify and delete users in the corresponding tenant, manage the system permissions that the system administrator has assigned to the corresponding tenant, and redistribute the permissions that the system administrator has assigned to the tenant to the user.

[0063] The authentication module is used to support each tenant to log in through its own authentication system to ensure the independence and security of user identity;

[0064] The log module is used to connect each tenant user to an independent logging system for logging, ensuring the independence and security of operation logs.

[0065] The allocation module in this embodiment is based on the tenant's business needs and usage scenarios to ensure that each tenant can use the system functions;

[0066] Among them, permission allocation includes data access rights, operation rights and functional module rights; system administrators can adjust tenants' permission configuration at any time according to needs.

[0067] The authentication module in this embodiment is to implement independent authentication management for tenants, and connect to their respective authentication systems through independent authentication APIs for different tenants to perform authentication login;

[0068] Among them, the authentication system is implemented based on OAuth technology and JWT technology.

[0069] The log module in this embodiment is to manage the independent logs of tenants, implement independent log management for tenants, and record logs by connecting different tenants to their respective Syslog systems.

[0070] Embodiment 3:

[0071] As attached Figure 2 As shown, the system functions include design center, order center, resource center and management center;

[0072] Among them, the design center has the functions of process design, operation design, network design, resource objects, atomic capabilities and form design.

[0073] The order center has the functions of order query, order monitoring, abnormal work order, order report and notification record.

[0074] The resource center has the functions of physical resources, virtual resources, logical resources, user resources, resource collection and resource reporting.

[0075] The management center has the functions of tenant management, role management, user management, homepage design, alarm management and log management.

[0076] As attached Figure 3 As shown, the system administrator can create, modify, and delete tenants, as well as manage the rights allocation for tenants.

[0077] Tenant administrators create, modify, and delete users, as well as manage and assign permissions to users.

[0078] As attached Figure 4 As shown in the figure, different tenants connect to the tenant headquarters system through independent authentication APIs and log synchronization APIs for authentication and Syslog synchronization.

[0079] Embodiment 4:

[0080] This embodiment also provides an electronic device, including: a memory and a processor;

[0081] Wherein, the memory stores computer-executable instructions;

[0082] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the multi-tenant hierarchical permission management method in any embodiment of the present invention.

[0083] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.

[0084] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.

[0085] Embodiment 5:

[0086] This embodiment also provides a computer-readable storage medium, which stores a plurality of instructions, which are loaded by a processor to enable the processor to execute the multi-tenant hierarchical rights management method in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0087] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0088] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0089] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0090] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-tenant hierarchical rights management method, characterized in that: The method is as follows: Create a multi-tenant environment: Use database slicing to create multiple tenants in the system. Each tenant is allocated an independent database space to ensure that the data between tenants is isolated from each other. Assign system permissions: The system administrator assigns system permissions to different tenants through the central management console. The system administrator manages the creation, modification, and deletion of tenants and assigns system operation permissions. Manage tenant internal roles: define two roles in each tenant: tenant administrator and common user. The tenant administrator is used to create, modify, and delete users in the corresponding tenant, manage the system permissions that the system administrator has assigned to the corresponding tenant, and assign the permissions that the system administrator has assigned to the tenant to the user. Independent authentication: Supports each tenant to log in through its own authentication system to ensure the independence and security of user identity; Independent log: Each tenant user is connected to an independent logging system for logging, ensuring the independence and security of operation logs.

2. The multi-tenant hierarchical rights management method according to claim 1, characterized in that: Permission allocation is based on the tenant's business needs and usage scenarios to ensure that each tenant can use system functions; Among them, permission allocation includes data access rights, operation rights and functional module rights; system administrators can adjust tenants' permission configuration at any time according to needs.

3. The multi-tenant hierarchical rights management method according to claim 1, characterized in that: Tenant administrators create new user roles and assign corresponding permissions based on specific business needs to ensure the flexibility and controllability of internal permission management.

4. The multi-tenant hierarchical rights management method according to claim 1, characterized in that: Independent authentication specifically includes: independent authentication management for tenants, implementing independent authentication management for tenants, connecting to their respective authentication systems through independent authentication APIs for different tenants for authentication and login; Among them, the authentication system is implemented based on OAuth technology and JWT technology.

5. The multi-tenant hierarchical rights management method according to any one of claims 1 to 4, characterized in that: Independent logs specifically include: independent log management for tenants, implementing independent log management for tenants, and logging through different tenants connecting to their respective Syslog systems.

6. A multi-tenant hierarchical rights management device, characterized in that: The device includes: The creation module is used to create multiple tenants in the system using database slices. Each tenant is allocated an independent database space to ensure that the data between tenants is isolated from each other. The allocation module is used to allocate system permissions to different tenants through the central management console; the system administrator manages the creation, modification, deletion and allocation of system operation permissions of tenants; The management module is used to define two roles, tenant administrator and common user, in each tenant. The tenant administrator is used to create, modify and delete users in the corresponding tenant, manage the system permissions that the system administrator has assigned to the corresponding tenant, and redistribute the permissions that the system administrator has assigned to the tenant to the user. The authentication module is used to support each tenant to log in through its own authentication system to ensure the independence and security of user identity; The log module is used to connect each tenant user to an independent logging system for logging, ensuring the independence and security of operation logs.

7. The multi-tenant hierarchical rights management device according to claim 6, characterized in that: The allocation module is based on the tenant's business needs and usage scenarios to ensure that each tenant can use the system functions; Among them, permission allocation includes data access rights, operation rights and functional module rights; system administrators can adjust tenants' permission configuration at any time according to needs.

8. The multi-tenant hierarchical rights management device according to claim 6 or 7, characterized in that: The authentication module is responsible for independent authentication management of tenants. It implements independent authentication management for tenants and connects to their respective authentication systems through independent authentication APIs for different tenants to perform authentication login. Among them, the authentication system is implemented based on OAuth technology and JWT technology; The log module is for independent log management of tenants. It implements independent log management for tenants and records logs by connecting different tenants to their respective Syslog systems.

9. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the multi-tenant hierarchical rights management method as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the multi-tenant hierarchical rights management method as described in any one of claims 1 to 5.