Resource access permission adjustment method and device, electronic equipment and storage medium
By clustering and statistically analyzing user behavior data and dynamically adjusting permission settings, the problem of untimely and unreasonable permission settings in enterprise information management is solved, the rationality and accuracy of permission settings are improved, and network security is ensured.
Patent Information
- Application Number
- CN202411153422.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-03
AI Technical Summary
In the existing enterprise information management, user permission settings rely on static settings and manual monitoring, resulting in abuse of permissions and security risks, and lack of dynamic adjustment mechanisms.
By collecting user behavior data during resource access, performing clustering analysis and statistical analysis, determining user behavior characteristics, and dynamically adjusting permission settings based on the characteristics, and promptly access abnormal alarms.
It improves the rationality and accuracy of permission settings, avoids permission abuse and security risks, realizes the timeliness of permission adjustments, and reduces network access risks.
Smart Images

Figure CN119066634A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for adjusting resource access rights. Background Art
[0002] In enterprise information management, user rights management and security monitoring are key security strategies. However, most enterprise information management currently relies on static rights settings and manual monitoring, which can easily lead to rights abuse and security risks.
[0003] Therefore, there is an urgent need to provide a new user rights management method to dynamically adjust rights according to the actual behavior of users. Summary of the invention
[0004] The present invention provides a resource access permission adjustment method, device, electronic device and storage medium to improve the rationality and accuracy of permission setting.
[0005] According to one aspect of the present invention, a method for adjusting resource access rights is provided, the method comprising:
[0006] Collecting user behavior data during resource access, and performing cluster analysis and statistical analysis on the behavior data to obtain user behavior characteristics;
[0007] Determine the permission setting value for each user to access different resources based on user behavior characteristics; and update the access rights of each user to different resources based on the permission setting value;
[0008] When a user's access to resources does not meet the corresponding access rights, an access exception alarm is issued.
[0009] Optionally, cluster analysis and statistical analysis are performed on the behavior data to obtain user behavior characteristics, including:
[0010] Performing cluster analysis on the behavior data based on two dimensions, user and resource, to obtain cluster data of each user in accessing different resources;
[0011] Statistical analysis is performed on the clustering data to obtain user behavior characteristics.
[0012] Optionally, the user behavior characteristics include: global average access frequency, global average access duration, local average access frequency within a preset time length from the current time, and local average access duration within a preset time length from the current time;
[0013] According to user behavior characteristics, determine the permission setting values for each user to access different resources, including:
[0014] Determine the access frequency permission setting value for each user when accessing different resources based on the global average access frequency and the local average access frequency in the user behavior characteristics;
[0015] According to the global average access time and the local average access time in the user behavior characteristics, the access time permission setting value of each user when accessing different resources is determined.
[0016] Optionally, according to the global average access frequency and the local average access frequency in the user behavior characteristics, the access frequency permission setting value for each user to access different resources is determined, including:
[0017] Calculate the frequency ratio of the local average access frequency to the global average access frequency, and perform difference calculation between the frequency ratio and 1 to obtain the frequency change degree;
[0018] Calculate the product of the frequency change degree and the last access frequency authority setting value to obtain a frequency change value;
[0019] The sum of the frequency change value and the global average access frequency is used as the current access frequency authority setting value.
[0020] Optionally, according to the global average access time and the local average access time in the user behavior characteristics, the access time permission setting value for each user to access different resources is determined, including:
[0021] Calculate the duration ratio of the local average access duration to the global average access duration, and perform a difference calculation between the duration ratio and 1 to obtain the duration change degree;
[0022] Calculate the product of the duration change degree and the last access duration permission setting value to obtain a duration change value;
[0023] The sum of the duration change value and the global average access duration is used as the current access duration authority setting value.
[0024] Optionally, the behavior data and the behavior characteristics are stored in different memories.
[0025] Optionally, the method further includes:
[0026] Obtaining a user's access request to a resource that exceeds the access rights, and conducting a permissions review to determine whether the access request is approved;
[0027] When the access request is approved, the user is allowed to access the resource beyond the access permission;
[0028] According to the user behavior characteristics, the permission setting value of each user when accessing different resources is determined; and before updating the access rights of each user to different resources according to the permission setting value, the access data of the user to the resources exceeding the access rights are filtered.
[0029] According to another aspect of the present invention, a device for adjusting resource access rights is provided, the device comprising:
[0030] A user behavior feature determination module is used to collect the user's behavior data in resource access, and perform cluster analysis and statistical analysis on the behavior data to obtain user behavior features;
[0031] The access permission adjustment module is used to determine the permission setting value for each user to access different resources according to the user behavior characteristics; and update the access permission for each user to different resources according to the permission setting value;
[0032] The abnormal alarm module is used to issue an access abnormality alarm when the user's access behavior to resources does not meet the corresponding access rights.
[0033] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0034] at least one processor; and
[0035] a memory communicatively connected to the at least one processor; wherein,
[0036] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the resource access permission adjustment method described in any embodiment of the present invention.
[0037] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource access permission adjustment method described in any embodiment of the present invention when executed.
[0038] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method for adjusting resource access rights according to any embodiment of the present invention is implemented.
[0039] The technical solution of the embodiment of the present invention obtains user behavior characteristics by collecting user behavior data in resource access and performing cluster analysis and statistical analysis on the behavior data; determines the permission setting value for each user to access different resources based on the user behavior characteristics; and updates the access rights of each user to different resources based on the permission setting value; and issues an access exception alarm when the user's access behavior to a resource does not meet the corresponding access rights, thereby solving the problem of untimely and unreasonable user permission settings, adjusting permissions based on user behavior data, improving the rationality and accuracy of permission settings, eliminating the need for manual monitoring of permissions, and ensuring the timeliness of permission adjustments to avoid network access risks.
[0040] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 is a flow chart of a method for adjusting resource access rights provided according to Embodiment 1 of the present invention;
[0043] Figure 2 is a schematic diagram of the structure of a device for adjusting resource access rights provided according to Embodiment 3 of the present invention;
[0044] Figure 3 It is a structural schematic diagram of an electronic device for implementing the resource access authority adjustment method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] Embodiment 1
[0048] Figure 1 This is a flow chart of a resource access permission adjustment method provided according to the first embodiment of the present invention. This embodiment is applicable to the case where an enterprise adjusts the user's access permission to resources. The method can be executed by a resource access permission adjustment device. The resource access permission adjustment device can be implemented in the form of hardware and / or software. The resource access permission adjustment device can be configured in an electronic device such as a computer. Figure 1 As shown, the method includes:
[0049] Step 110: collect the user's behavior data in resource access, and perform cluster analysis and statistical analysis on the behavior data to obtain user behavior characteristics.
[0050] User behavior data is obtained only after authorization by the user, and the method of acquisition is reasonable and legal. User behavior data includes but is not limited to: the type of resources accessed, access time, access frequency, and access duration, etc. For example, user behavior data is "User A accessed the financial statements in the system 5 times in one day, and the duration of each visit was 5 minutes, 10 minutes, 3 minutes, 8 minutes, and 6 minutes respectively."
[0051] Cluster analysis can be to classify the same type of behavior data using a clustering algorithm. The specific clustering algorithm is not limited in the embodiment of the present invention. After clustering, statistical analysis is performed on the behavior data of the same type to obtain user behavior characteristics. By performing cluster analysis first and then statistical analysis, the data volume level of behavior data processing can be reduced and the determination rate of user behavior characteristics can be increased.
[0052] User behavior characteristics may specifically include detailed access pattern information for each user. Exemplarily, user behavior characteristics include, but are not limited to: user identification, resource identification, access frequency, access duration, and access time distribution. User identification may uniquely identify the user's ID or user name. Resource identification may be the name of a specific resource or system module accessed by the user. Access frequency may be the average number of times a user accesses a resource (such as per day or per week). Access duration may be the average duration of each user's access to a resource. Access time distribution may be the distribution of user access times in a day or a week.
[0053] Since the amount of user behavior data is large, in the embodiment of the present invention, the behavior data and the behavior characteristics can be stored in different memories. By storing the behavior characteristics separately, the amount of data storage is reduced, and the user behavior characteristics loading speed when the access rights are updated can be improved.
[0054] For example, user behavior data can be stored in a relational database (such as MySQL, PostgreSQL), a NoSQL database (such as MongoDB), or a file storage (such as HDFS). Behavioral features can be stored in different tables in the same database as user behavior data, or in different databases.
[0055] In an optional implementation of an embodiment of the present invention, cluster analysis and statistical analysis are performed on the behavior data to obtain user behavior characteristics, including: cluster analysis of the behavior data based on two dimensions, user and resource, to obtain cluster data of each user in accessing different resources; and statistical analysis of the cluster data to obtain user behavior characteristics.
[0056] Exemplarily, the access behavior data of user A is the access record: July 1, 2024: access to "Financial Statements", duration 5 minutes; July 1, 2024: access to "Human Resources", duration 20 minutes; July 2, 2024: access to "Financial Statements", duration 10 minutes; July 2, 2024: access to "Project Management", duration 30 minutes; July 3, 2024: access to "Financial Statements", duration 3 minutes; July 3, 2024: access to "Human Resources", duration 15 minutes.
[0057] The access behavior data of user B is the access records: July 1, 2024: access to "Project Management", duration 45 minutes; July 1, 2024: access to "Customer Relations", duration 25 minutes; July 2, 2024: access to "Project Management", duration 50 minutes; July 3, 2024: access to "Project Management", duration 40 minutes; July 3, 2024: access to "Customer Relations", duration 30 minutes.
[0058] The access behavior data of user C is the access records: July 1, 2024: access to "sales report", duration 10 minutes; July 2, 2024: access to "sales report", duration 15 minutes; July 3, 2024: access to "sales report", duration 8 minutes; July 3, 2024: access to "market analysis", duration 20 minutes.
[0059] After clustering and statistical analysis of the behavior data, we can get the user behavior characteristics. Specifically, the behavior characteristics of user A are: for financial report resources, the average access frequency is 1.33 times a day, and the average access time is 6 minutes; for human resources, the average access frequency is 0.67 times a day, and the average access time is 17.5 minutes; for project management resources, the average access frequency is 0.33 times a day, and the average access time is 30 minutes.
[0060] The behavioral characteristics of user B are as follows: for project management resources, the average access frequency is 1.33 times a day; the average access duration is 45 minutes; for customer relationship resources, the average access frequency is 0.67 times a day; the average access duration is 27.5 minutes.
[0061] The behavioral characteristics of user C are as follows: for sales report resources, the average access frequency is once a day; the average access time is 11 minutes; for market analysis resources, the average access frequency is 0.33 times a day; the average access time is 20 minutes.
[0062] Step 120: Determine the permission setting value for each user to access different resources based on the user behavior characteristics; and update the access rights of each user to different resources based on the permission setting value.
[0063] There are many ways to determine the permission setting value. For example, the average access frequency and average access duration of a user to a resource in the user behavior characteristics can be used as the permission setting value when the user accesses the corresponding resource.
[0064] In an embodiment of the present invention, in order to improve the reliability of the permission setting value, in an optional implementation manner of the embodiment of the present invention, the user behavior characteristics include: the global average access frequency, the global average access duration, the local average access frequency within a preset time length from the current time, and the local average access duration within a preset time length from the current time.
[0065] Among them, the global average access frequency may be the average access frequency calculated based on all the behavior data of the user on a certain resource. The global average access duration may be the average access duration calculated based on all the behavior data of the user on a certain resource. The local average access frequency may be the average access frequency calculated based on the local behavior data of the user on a certain resource within a preset time length from the current time. The local average access duration may be the average access duration calculated based on the local behavior data of the user on a certain resource within a preset time length from the current time. For example, the average access frequency and average access duration may be calculated based on the behavior data of the week before the current time to obtain the local average access frequency and local average access duration.
[0066] In an optional implementation of an embodiment of the present invention, the permission setting value for each user to access different resources is determined based on the user behavior characteristics, including: determining the access frequency permission setting value for each user to access different resources based on the global average access frequency and the local average access frequency in the user behavior characteristics; determining the access time permission setting value for each user to access different resources based on the global average access time and the local average access time in the user behavior characteristics.
[0067] There are many ways to set the access frequency permission setting value and the access duration permission setting value. Exemplarily, the average of the global average access frequency and the local average access frequency can be used as the access frequency permission setting value. The average of the global average access duration and the local average access duration is used as the global average access duration and the local average access duration. Alternatively, when calculating the mean, the weight of each parameter can be considered. That is, the weighted average of the global average access frequency and the local average access frequency is used as the access frequency permission setting value. The weighted average of the global average access duration and the local average access duration is used as the global average access duration and the local average access duration.
[0068] Furthermore, in an optional implementation of the embodiment of the present invention, the access frequency authority setting value for each user when accessing different resources is determined based on the global average access frequency and the local average access frequency in the user behavior characteristics, including: calculating the frequency ratio of the local average access frequency to the global average access frequency, and performing a difference calculation between the frequency ratio and 1 to obtain the frequency change degree; calculating the product of the frequency change degree and the previous access frequency authority setting value to obtain the frequency change value; and taking the sum of the frequency change value and the global average access frequency as the current access frequency authority setting value.
[0069] Among them, by calculating the frequency change degree, the user's recent access frequency change situation can be determined, so as to dynamically adjust the access frequency permission setting value according to the frequency change degree, improve the degree of fit between the permission and the actual application situation, and improve the accuracy of abnormal access detection. When calculating the frequency change value, the previous access frequency permission setting value is used as a benchmark, so that the previous access frequency permission setting value can be dynamically adjusted to improve the reliability of permission adjustment. When determining the current access frequency permission setting value, the sum of the frequency change value and the global average access frequency is calculated. On the basis of considering the previous access frequency permission setting value, the global average access frequency can be considered, so that the overall permission setting value will not deviate too much, ensuring the smooth change of the permission value and the rationality of the access permission setting.
[0070] In an optional implementation of an embodiment of the present invention, the access time permission setting value for each user when accessing different resources is determined based on the global average access time and the local average access time in the user behavior characteristics, including: calculating the time ratio of the local average access time to the global average access time, and subtracting the time ratio from 1 to obtain the degree of duration change; calculating the product of the degree of duration change and the previous access time permission setting value to obtain the duration change value; and using the sum of the duration change value and the global average access time as the current access time permission setting value.
[0071] Among them, by calculating the degree of change in duration, the user's recent access duration changes can be determined, so as to dynamically adjust the access duration permission setting value according to the degree of change in duration, improve the degree of fit between permissions and actual application conditions, and improve the accuracy of abnormal access detection. When calculating the duration change value, the previous access duration permission setting value is used as a benchmark, so that the previous access duration permission setting value can be dynamically adjusted to improve the reliability of permission adjustment. When determining the current access duration permission setting value, the sum of the duration change value and the global average access duration is calculated. On the basis of considering the previous access duration permission setting value, the global average access duration can be considered, so that the overall permission setting value will not deviate too much, ensuring the smooth change of the permission value and the rationality of the access permission setting.
[0072] In an embodiment of the present invention, a change log can be generated for each permission update to facilitate subsequent auditing and tracking. For example, a detailed log of user C's permission changes can be recorded, including: "On July 10, 2024, user C's 'sales report' resource access permission was adjusted to a maximum of once a day, each time for no more than 11 minutes. Reason: The permission is too high, there is a potential risk."
[0073] Step 130: When the user's access behavior to the resource does not satisfy the corresponding access permission, an access abnormality alarm is issued.
[0074] For example, set the user's access rights to resources as follows: the access frequency permission setting value is once a day, and the access duration permission setting value is 11 minutes each time. When the user's access to resources exceeds the corresponding permissions, such as the user accessing the sales report resource 3 times, each time for 50 minutes, an access exception alarm is issued to prevent the device from being attacked by abnormal attacks such as hackers. When the administrator receives an access exception alarm, he can perform security checks and processing according to the alarm content to ensure the network security of the device.
[0075] Exemplarily, when an access abnormality alarm is issued, an alarm message may be sent to an administrator via email and / or instant messaging tools to remind the administrator to pay attention to potential security risks.
[0076] Based on the above implementation, optionally, the method further includes: obtaining a user's access request to a resource that exceeds the access permissions, and performing a permission review to determine whether the access request is approved; if the access request is approved, allowing the user to access the resource beyond the access permissions; determining the permission setting value for each user to access different resources based on user behavior characteristics, and filtering the user's access data to resources that exceeds the access permissions before updating each user's access permissions to different resources based on the permission setting value.
[0077] Among them, by filtering the user's access data to resources that exceeds the access permissions before updating the permission setting value, it can be ensured that the permission setting value is set based on normal access data, thereby improving the rationality of the permission setting value and avoiding setting the permission value too large, which brings risks to the device network access.
[0078] The technical solution of this embodiment obtains user behavior characteristics by collecting user behavior data in resource access and performing cluster analysis and statistical analysis on the behavior data; determines the permission setting value for each user to access different resources based on the user behavior characteristics; and updates the access rights of each user to different resources based on the permission setting value; issues an access exception alarm when the user's access behavior to a resource does not meet the corresponding access rights, thereby solving the problem of untimely and unreasonable user permission settings, adjusting permissions based on user behavior data, improving the rationality and accuracy of permission settings, eliminating the need for manual monitoring of permissions, and ensuring the timeliness of permission adjustments to avoid network access risks.
[0079] Embodiment 2
[0080] Figure 2 Schematic diagram of a resource access permission adjustment device provided according to Embodiment 3 of the present invention. Figure 2 As shown, the device includes: a user behavior feature determination module 210, an access permission adjustment module 220 and an abnormality alarm module 230. Among them:
[0081] The user behavior feature determination module 210 is used to collect the user's behavior data in resource access, and perform cluster analysis and statistical analysis on the behavior data to obtain the user behavior features;
[0082] The access permission adjustment module 220 is used to determine the permission setting value for each user to access different resources according to the user behavior characteristics; and update the access permission for each user to different resources according to the permission setting value;
[0083] The abnormality alarm module 230 is used to generate an access abnormality alarm when the user's access behavior to the resource does not meet the corresponding access permission.
[0084] Optionally, the user behavior feature determination module 210 includes:
[0085] The clustering unit is used to perform cluster analysis on the behavior data based on the two dimensions of user and resource, and obtain the clustering data of each user in accessing different resources;
[0086] The statistical unit is used to perform statistical analysis on the cluster data to obtain user behavior characteristics.
[0087] Optionally, user behavior characteristics include: global average access frequency, global average access duration, local average access frequency within a preset time length from the current time, and local average access duration within a preset time length from the current time;
[0088] The access permission adjustment module 220 includes:
[0089] An access frequency authority setting value determination unit, used to determine the access frequency authority setting value for each user to access different resources according to the global average access frequency and the local average access frequency in the user behavior characteristics;
[0090] The access time permission setting value determination unit is used to determine the access time permission setting value when each user accesses different resources according to the global average access time and the local average access time in the user behavior characteristics.
[0091] Optionally, the access frequency authority setting value determination unit includes:
[0092] The frequency change degree determination subunit is used to calculate the frequency ratio of the local average access frequency to the global average access frequency, and perform a difference calculation between the frequency ratio and 1 to obtain the frequency change degree;
[0093] The frequency change value determination subunit is used to calculate the product of the frequency change degree and the previous access frequency authority setting value to obtain the frequency change value;
[0094] The access frequency authority setting value determination subunit is used to take the sum of the frequency change value and the global average access frequency as the current access frequency authority setting value.
[0095] Optionally, the access duration permission setting value determination unit includes:
[0096] The duration change degree determination subunit is used to calculate the duration ratio of the local average access duration to the global average access duration, and perform a difference calculation between the duration ratio and 1 to obtain the duration change degree;
[0097] The duration change value determination subunit is used to calculate the product of the duration change degree and the last access duration permission setting value to obtain the duration change value;
[0098] The access time permission setting value determination subunit is used to take the sum of the time change value and the global average access time as the current access time permission setting value.
[0099] Optionally, the behavior data and the behavior characteristics are stored in different memories.
[0100] Optionally, the device further includes:
[0101] The access request review module is used to obtain user access requests for resources that exceed the access rights, and conduct permission review to determine whether the access request is approved;
[0102] An access execution module is used to allow a user to access resources beyond the access permission when an access request is approved;
[0103] The access data filtering module is used to determine the permission setting value for each user to access different resources based on user behavior characteristics; and before updating the access rights of each user to different resources based on the permission setting value, filter the user's access data to resources that exceeds the access rights.
[0104] The resource access permission adjustment device provided in the embodiment of the present invention can execute the resource access permission adjustment method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0105] In the technical solutions of the embodiments of the present invention, the collection, storage, use, processing, transmission, provision and disclosure of user personal information (such as user behavior data and user behavior characteristics) are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0106] Embodiment 3
[0107] Figure 3A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0108] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0109] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a resource access permission adjustment method.
[0111] In some embodiments, the resource access permission adjustment method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the resource access permission adjustment method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the resource access permission adjustment method in any other appropriate manner (e.g., by means of firmware).
[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0114] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0117] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0119] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for adjusting resource access rights, It is characterized in that include: Collecting user behavior data during resource access, and performing cluster analysis and statistical analysis on the behavior data to obtain user behavior characteristics; Determine the permission setting value for each user to access different resources based on user behavior characteristics; and update the access rights of each user to different resources based on the permission setting value; When a user's access to resources does not meet the corresponding access rights, an access exception alarm is issued.
2. The method according to claim 1, It is characterized in that Perform cluster analysis and statistical analysis on the behavior data to obtain user behavior characteristics, including: Performing cluster analysis on the behavior data based on two dimensions, user and resource, to obtain cluster data of each user in accessing different resources; Statistical analysis is performed on the clustering data to obtain user behavior characteristics.
3. The method according to claim 2, It is characterized in that The user behavior characteristics include: global average access frequency, global average access duration, local average access frequency within a preset time length from the current time, and local average access duration within a preset time length from the current time; According to user behavior characteristics, determine the permission setting values for each user to access different resources, including: Determine the access frequency permission setting value for each user when accessing different resources based on the global average access frequency and the local average access frequency in the user behavior characteristics; According to the global average access time and the local average access time in the user behavior characteristics, the access time permission setting value of each user when accessing different resources is determined.
4. The method according to claim 3, It is characterized in that According to the global average access frequency and local average access frequency in the user behavior characteristics, the access frequency permission setting value of each user when accessing different resources is determined, including: Calculate the frequency ratio of the local average access frequency to the global average access frequency, and perform difference calculation between the frequency ratio and 1 to obtain the frequency change degree; Calculate the product of the frequency change degree and the last access frequency authority setting value to obtain a frequency change value; The sum of the frequency change value and the global average access frequency is used as the current access frequency authority setting value.
5. The method according to claim 3, It is characterized in that According to the global average access time and local average access time in the user behavior characteristics, the access time permission setting value of each user when accessing different resources is determined, including: Calculate the duration ratio of the local average access duration to the global average access duration, and perform a difference calculation between the duration ratio and 1 to obtain the duration change degree; Calculate the product of the duration change degree and the last access duration permission setting value to obtain a duration change value; The sum of the duration change value and the global average access duration is used as the current access duration authority setting value.
6. The method according to claim 1, It is characterized in that The behavior data and the behavior characteristics are stored in different memories.
7. The method according to claim 1, It is characterized in that Also includes: Obtaining a user's access request to a resource that exceeds the access rights, and conducting a permissions review to determine whether the access request is approved; When the access request is approved, the user is allowed to access the resource beyond the access permission; Before determining the permission setting value for each user to access different resources according to the user behavior characteristics and updating the access rights of each user to different resources according to the permission setting value, filtering the access data of the user to the resources exceeding the access rights.
8. A device for adjusting resource access rights, It is characterized in that include: A user behavior feature determination module is used to collect the user's behavior data in resource access, and perform cluster analysis and statistical analysis on the behavior data to obtain user behavior features; The access permission adjustment module is used to determine the permission setting value for each user to access different resources according to the user behavior characteristics; and update the access permission for each user to different resources according to the permission setting value; The abnormal alarm module is used to issue an access abnormality alarm when the user's access behavior to resources does not meet the corresponding access rights.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the resource access permission adjustment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource access permission adjustment method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Digital teaching resource calling management system and method based on online teaching
CN119961952A
