Resource sharing method and device, electronic equipment and storage medium
By creating a target type identifier for the first user and adding an identification list, the convenience and efficiency of cross-tenant access in the shared resource platform are solved, resource sharing is realized under tenant isolation, and the convenience and efficiency of resource sharing are improved .
Patent Information
- Application Number
- CN202411112080.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-06
AI Technical Summary
In a platform that shares resources, it is difficult for the existing technology to achieve cross-tenant access to resources under tenant isolation, and often requires administrator authorization or users to switch tenants, resulting in inconvenience and inefficiency.
By creating a target type identifier for the first user and adding it to the identification list of the target resource, the first user is allowed to access the target resource with the target type identifier, avoiding breaking user group isolation and realizing cross-user group resource sharing.
It realizes that without breaking the isolation of user groups, the first user can easily access the target resources, reduces the need for administrator authorization and users to switch tenants, and improves the efficiency and convenience of resource sharing.
Smart Images

Figure CN119089463A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a resource sharing method, device, electronic device, and storage medium. Background Art
[0002] On shared resource platforms, such as cloud computing and Software as a Service (SaaS), tenant isolation is often employed for data security reasons. Users within a tenant can only access resources within that tenant. However, some resources, such as customer relationship management applications and supplier management applications, naturally need to be shared externally and require access from users outside the tenant. Summary of the Invention
[0003] The present disclosure provides a resource sharing method, device, electronic device and storage medium.
[0004] The present disclosure adopts the following technical solutions.
[0005] In some embodiments, the present disclosure provides a resource sharing method, comprising:
[0006] In response to a first operation of a first user accessing a target resource and the first user having access rights to the target resource, obtaining an identity identifier of the first user, wherein the first user belongs to a first user group and the target resource belongs to a second user group to which a second user belongs;
[0007] In response to the identity identifier of the first user not being included in the identifier list associated with the target resource, creating a target type identifier for the first user and adding the target type identifier to the identifier list;
[0008] The identification list is used to record the identifications of users who can access the target resource.
[0009] In some embodiments, the present disclosure provides a resource sharing device, comprising:
[0010] an acquiring unit, configured to acquire an identity identifier of the first user in response to a first operation of a first user accessing a target resource and the first user having access rights to the target resource, wherein the first user belongs to a first user group and the target resource belongs to a second user group to which a second user belongs;
[0011] a control unit, configured to, in response to the identification list associated with the target resource not including the identity identifier of the first user, create a target type identifier for the first user and add the target type identifier to the identification list;
[0012] The identification list is used to record the identifications of users who can access the target resource.
[0013] In some embodiments, the present disclosure provides an electronic device comprising: at least one memory and at least one processor;
[0014] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.
[0015] In some embodiments, the present disclosure provides a computer-readable storage medium for storing program code, which, when executed by a processor, prompts the processor to perform the above method.
[0016] The method provided by the embodiment of the present disclosure allows the first user to access the target resource through the target type identity without destroying the isolation of the user group. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0018] Figure 1 4 is a flowchart of a resource sharing method according to an embodiment of the present disclosure.
[0019] Figure 2 It is an interaction diagram of the resource sharing method according to an embodiment of the present disclosure.
[0020] Figure 3 Schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0022] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0023] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0024] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0025] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0026] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed sequentially and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0029] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as “one or more”.
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0033] On shared resource platforms, tenants (also known as user groups, typically companies, groups, and organizations, each with its own users) are used for isolation. Users in different tenants can only access resources within that tenant. However, some resources naturally require external sharing and need to be accessible to users outside their own tenant. Therefore, sharing platforms need to provide solutions for external sharing of these resources without violating tenant isolation.
[0034] To achieve resource sharing while maintaining tenant isolation, some related technologies add all users from upstream and downstream tenants to a new tenant and synchronize necessary resources from the original tenants to the new tenant to enable cross-tenant collaboration. This approach requires separate tenant resources, and users must switch to their current tenant to access resources, which is inconvenient.
[0035] In other related technologies, administrators authorize users in different tenants to establish a trust relationship. Users use their identities to gain limited access to resources shared across tenants. This approach requires administrator authorization, and when multiple tenants are involved, multiple authorizations are required.
[0036] In other related technologies, users from other tenants join a special tenant as guests. Users in the special tenant have limited access to resources in other tenants. This approach requires users to switch their tenant to the special tenant in order to access resources in other tenants.
[0037] In other related technologies, the application programming interface (API) needs to be modified to use new access credentials that clearly mark the relevant tenants to access resources across tenants. This approach requires the interface to support the access credentials of the relevant tenants.
[0038] like Figure 1 As shown, Figure 1 This is a flowchart of a resource sharing method according to an embodiment of the present disclosure, which includes the following steps.
[0039] S11. In response to a first operation of a first user accessing a target resource and the first user having access rights to the target resource, obtaining an identity identifier of the first user.
[0040] In some embodiments, the embodiments proposed in the present disclosure can be used in resource sharing platforms, for example, software as a service platforms. Resource sharing platforms usually use tenants (also known as user groups) for isolation, and users under a user group can only access the resources under the user group using their identity identifiers. The target resource can be an application. The first operation can, for example, trigger a link to the target resource, or scan a QR code of the target resource to attempt to access the target resource. In some embodiments, it can be determined whether the first user is granted access rights to the target resource based on the identity identifier of the first user. The first user belongs to the first user group, and the target resource belongs to the second user group to which the second user belongs. In some embodiments, the first user can only access the resources of the first user group through his identity identifier, but cannot access the resources of the second user group. The first user may be granted access rights to the target resource by the second user. Specifically, the second user may be granted access rights to the target resource for the identity identifier of the first user, but due to the difference in user groups, the first user cannot directly access the target resource through his identity identifier. The first user and the second user are users of different user groups.
[0041] S12: In response to the identification list associated with the target resource not including the identity identifier of the first user, create a target type identifier for the first user and add the target type identifier to the identification list.
[0042] In some embodiments of the present disclosure, a first user is granted access rights to a target resource by a second user. An identification list is used to record the identifications of users who can access the target resource. The user corresponding to the identification in the identification list can access the target resource using its identification in the identification list. When the first user attempts to access the target resource, an identification list associated with the target resource can be obtained. It is then determined whether the first user's identity is in the identification list. If the first user's identity (the first user's identity can represent that it is in the first user group, and the first user's identity can include: the first user group it belongs to and its code in the first user group) is not in the identification list of the target resource, the first user's identity is not added to the identification list. Because the target resource is a resource of the second user group, the identity of the first user of the first user group cannot be added, otherwise the user group isolation will be destroyed. Therefore, a target type identification is created for the first user and the target type identification is added to the identification list. The target type identification can be associated with the first user's identity, so that the first user can access the target resource through the target type identification when accessing the target resource this time and subsequently.
[0043] In some embodiments of the present disclosure, when a first user is granted access rights to a target resource, since the target resource is a resource of the second user group and is restricted by user group isolation, the target resource cannot be accessed directly through the first user's identity. Therefore, a target type identity is created for the first user and added to the target resource's identification list. In this way, the first user can access the target resource through the target type identity without destroying user group isolation. Compared to related technologies, in this embodiment, when accessing the target resource, the first user does not need to switch the user group to which he belongs, does not need the application interface to support access credentials, does not need the administrator to authorize multiple times, and does not need to create a new user group to avoid user group isolation.
[0044] In some embodiments of the present disclosure, the first user can only access the resources of the first user group through his or her identity identifier. The first user cannot directly access the target resource through the identity identifier because the target resource does not belong to the first user group. In order to achieve resource sharing across user groups, in some embodiments of the present disclosure, a target type identifier is created so that the first user can access the target resource through the target type identifier without destroying the isolation of the user groups. In the embodiments of the present disclosure, in view of the situation where user groups are isolated, in order to share resources without destroying the isolation of user groups, an additional target type identifier is created for the first user, so that the first user can access the target resource through the target type identifier instead of using the identity identifier of the first user.
[0045] In some embodiments of the present disclosure, the target resource includes an application; and / or the target resource is a resource created by the second user. In some embodiments, the target resource itself may be an application, which may be an application created by the second user on a resource sharing platform, and which may, by default, only allow users in the user group to which the second user belongs to access it.
[0046] In some embodiments of the present disclosure, after creating a target type identifier for the first user and adding the target type identifier to the identifier list, it also includes: accessing the target resource through the target type identifier. In some embodiments, after creating a target type identifier for the first user, the target type identifier can be automatically used as the identifier of the first user to access the target resource. In other embodiments, feedback can be first given to the first user, such as sending a message to inform that the target type identifier has been created for it, and then the target type identifier can be used to access the target resource after the first user performs a specific operation (such as refresh). Because in some cases, some processing may need to be performed after the target type identifier is created, which takes time, therefore, the target resource is accessed after the first user performs a specific operation, thereby ensuring that the first user is still online.
[0047] In some embodiments of the present disclosure, accessing the target resource through the target type identifier includes: determining the first user's authority to the target content in the target resource in response to the first user accessing the target content; and determining whether to display the target content for the first user based on the first user having access rights to the target content.
[0048] In some embodiments, having access rights to a target resource is not equivalent to having access rights to all contents in the target resource. In this embodiment, permission management is refined to the contents in the target resource. In addition to having access rights to the target resource, the first user may also need access rights to the contents if he or she wants to access the contents therein. Therefore, when the first user accesses the target content in the target resource, it is also necessary to determine whether he or she has access rights to the target content. Only when he or she has access rights to the target content will the target content be displayed or processed accordingly, thereby improving the accuracy of permission management.
[0049] In some embodiments of the present disclosure, a mapping relationship is established between the target type identifier and the identity identifier of the second user and the resource identifier of the target resource. In some embodiments, when or after creating the target type identifier, a mapping relationship can be established between the target type identifier and the identity identifier of the second user, so that it can be known who has granted access rights to the target resource to the first user. A mapping relationship is established between the target type identifier and the resource identifier of the target resource, so that it can be known through the target type identifier that the target type identifier needs to be adapted when accessing which resource, so that the target type identifier can be used when accessing the target resource.
[0050] In some embodiments of the present disclosure, in response to an access operation event of a first user to a target resource, before obtaining the identity identifier of the first user, the method further includes: granting access rights to the target resource to the first user in response to a second operation of a second user; and sharing the target resource with the first user in response to a third operation on the target resource. In some embodiments, the second operation may be, for example, a permission application operation, in which the second user applies for access rights to the target resource for the first user. The third operation may be a sharing operation, in which, after applying for access rights, the target resource may be shared with the first user by the second user or other users.
[0051] In some embodiments of the present disclosure, Figure 2 A specific embodiment is proposed. Figure 2In the example, the second user first creates an application as the target resource (the application is only an example and does not limit the type of target resource), and then applies for application permissions (that is, the first user's access rights to the application). After the application permissions are approved, the second user can publish the application to the resource sharing platform, so that users in the second user group can use the application (the identities of users in the second user group can be added to the identification list by default). The application in the resource sharing platform can be shared with the first user through links, etc. The first user can trigger access to the target resource by clicking on the link, etc. At this time, it will be determined that the first user has access rights to the target resource, and the first user's identity will be obtained and passed to the application. The application checks and determines that the identity of the first user is not in the associated identification list (because the first user is not a user in the second user group and his identity is not in the identification list), then it calls the identity service to create a target type identification for the first user, and establishes a mapping relationship between the target type identification and the identity of the second user and the resource identification of the application. After creating the target type identification, user interaction (such as reminders or messages) is sent to the first user, and then the first user can access the application by refreshing the page, etc. When the first user accesses the application, further authentication will be performed to determine that he has access rights to the target content he wants to access. After successful authentication, he can access it.
[0052] In some embodiments of the present disclosure, a target type identifier is created for the first user without any sense, and the sharing of target resources is achieved without destroying the isolation of user groups. This method can be used in upstream and downstream collaboration scenarios of enterprises. The first user and the second user can be users belonging to upstream and downstream enterprises, and the upstream and downstream enterprises are different user groups. For example, the enterprise is the second user group, the employees in the enterprise are the second users, the external suppliers of the enterprise can be the first user group, and the employees of the suppliers are the first users. Through some embodiments of the present disclosure, external suppliers can conveniently access and use the target resources of the enterprise (such as collaborative applications) without the need for additional registration and switching of user groups, and can effectively integrate with the business processes of the enterprise to improve efficiency. It can also help enterprises spread applications and improve efficiency.
[0053] The present disclosure also provides a resource sharing device, comprising:
[0054] an acquiring unit, configured to acquire an identity identifier of the first user in response to a first operation of a first user accessing a target resource and the first user having access rights to the target resource, wherein the first user belongs to a first user group and the target resource belongs to a second user group to which a second user belongs;
[0055] a control unit, configured to, in response to the identification list associated with the target resource not including the identity identifier of the first user, create a target type identifier for the first user and add the target type identifier to the identification list;
[0056] The identification list is used to record the identifications of users who can access the target resource.
[0057] In some embodiments, the first user can only access resources of the first user group through his / her identity.
[0058] In some embodiments, the target resource includes an application; and / or,
[0059] The target resource is a resource created by the second user.
[0060] In some embodiments, the control unit is further configured to create a target type identifier for the first user, add the target type identifier to the identifier list, and then access the target resource through the target type identifier.
[0061] In some embodiments, accessing the target resource through the target type identifier includes:
[0062] In response to the first user accessing target content in the target resource, determining the first user's authority to the target content;
[0063] Based on whether the first user has access rights to the target content, it is determined whether to display the target content for the first user.
[0064] In some embodiments, a mapping relationship is established between the target type identifier and the identity identifier of the second user and the resource identifier of the target resource.
[0065] In some embodiments, the control unit is further used to, in response to an access operation event of the first user to the target resource, grant the first user access rights to the target resource in response to a second operation of the second user before obtaining the identity of the first user; and / or, the control unit is further used to, in response to an access operation event of the first user to the target resource, share the target resource with the first user in response to a third operation on the target resource before obtaining the identity of the first user.
[0066] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art can understand and implement them without paying creative work.
[0067] The method and apparatus of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
[0068] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device (e.g., a terminal device or server) 800 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0069] The electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0070] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the electronic device 800 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0071] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0072] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0073] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0074] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0075] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
[0076] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0077] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0078] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0079] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0080] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can 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.
[0081] According to one or more embodiments of the present disclosure, a resource sharing method is provided, including:
[0082] In response to a first operation of a first user accessing a target resource, obtaining an identity identifier of the first user, wherein the first user is granted access rights to the target resource by the second user, the first user belongs to a first user group, and the target resource belongs to a second user group to which the second user belongs;
[0083] In response to the identity identifier of the first user not being included in the identifier list associated with the target resource, creating a target type identifier for the first user and adding the target type identifier to the identifier list;
[0084] The identification list is used to record the identifications of users who can access the target resource.
[0085] According to one or more embodiments of the present disclosure, a resource sharing method is provided, wherein the first user can only access the resources of the first user group through his / her identity identifier.
[0086] According to one or more embodiments of the present disclosure, a resource sharing method is provided, wherein the target resource includes an application; and / or,
[0087] The target resource is a resource created by the second user.
[0088] According to one or more embodiments of the present disclosure, a resource sharing method is provided, which creates a target type identifier for the first user and adds the target type identifier to the identifier list, further comprising:
[0089] The target resource is accessed through the target type identifier.
[0090] According to one or more embodiments of the present disclosure, a resource sharing method is provided, wherein accessing the target resource through the target type identifier includes:
[0091] In response to the first user accessing target content in the target resource, determining the first user's authority to the target content;
[0092] Based on whether the first user has access rights to the target content, it is determined whether to display the target content for the first user.
[0093] According to one or more embodiments of the present disclosure, a resource sharing method is provided, wherein a mapping relationship is established between the target type identifier and the identity identifier of the second user and the resource identifier of the target resource.
[0094] According to one or more embodiments of the present disclosure, a resource sharing method is provided. In response to an access operation event of a first user to a target resource, before obtaining an identity identifier of the first user, the method further includes:
[0095] In response to a second operation of a second user, granting access rights to the target resource to the first user;
[0096] In response to a third operation on the target resource, the target resource is shared with the first user.
[0097] According to one or more embodiments of the present disclosure, a resource sharing device is provided, comprising:
[0098] an acquiring unit, configured to acquire an identity identifier of the first user in response to a first operation of the first user accessing a target resource, wherein the first user is granted access rights to the target resource by the second user, the first user belongs to a first user group, and the target resource belongs to a second user group to which the second user belongs;
[0099] a control unit, configured to, in response to the identification list associated with the target resource not including the identity identifier of the first user, create a target type identifier for the first user and add the target type identifier to the identification list;
[0100] The identification list is used to record the identifications of users who can access the target resource.
[0101] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;
[0102] The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute any one of the above methods.
[0103] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to perform the above method.
[0104] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0105] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0106] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A resource sharing method, It is characterized in that include: In response to a first operation of a first user accessing a target resource and the first user having access rights to the target resource, acquiring an identity identifier of the first user, wherein the first user belongs to a first user group and the target resource belongs to a second user group to which a second user belongs; In response to the identification list associated with the target resource not including the identity identifier of the first user, creating a target type identifier for the first user and adding the target type identifier to the identification list; The identification list is used to record the identifications of users who can access the target resource.
2. The method according to claim 1, It is characterized in that The first user can only access the resources of the first user group through his identity identifier.
3. The method according to claim 1, It is characterized in that The target resource includes an application; and / or, The target resource is a resource created by the second user.
4. The method according to claim 1, It is characterized in that After creating a target type identifier for the first user and adding the target type identifier to the identifier list, the method further includes: The target resource is accessed through the target type identifier.
5. The method according to claim 4, It is characterized in that Accessing the target resource through the target type identifier includes: In response to the first user accessing the target content in the target resource, determining the authority of the first user to the target content; Based on the first user having access rights to the target content, it is determined whether to display the target content for the first user.
6. The method according to claim 1, It is characterized in that The target type identifier is mapped to the identity identifier of the second user and the resource identifier of the target resource.
7. The method according to claim 1, It is characterized in that In response to an access operation event of a first user to a target resource, before obtaining the identity identifier of the first user, the method further includes: In response to a second operation of a second user, granting access rights to the target resource to the first user; and / or, In response to a third operation on the target resource, the target resource is shared with the first user.
8. A resource sharing device, It is characterized in that include: an acquiring unit, configured to acquire an identity identifier of the first user in response to a first operation of the first user accessing a target resource and the first user having access rights to the target resource, wherein the first user belongs to a first user group and the target resource belongs to a second user group to which a second user belongs; a control unit, configured to, in response to the identification list associated with the target resource not including the identity of the first user, create a target type identification for the first user and add the target type identification to the identification list; The identification list is used to record the identifications of users who can access the target resource.
9. An electronic device, include: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 7. 10 . A computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, wherein when the program codes are executed by a processor, the processor is prompted to execute the method according to claim 1 .
