Data processing method and device

By switching different identity identifiers in user accounts to switch associated organization databases, the cumbersome data processing operation caused by the single user account and organization association mode in software-as-a-service mode is solved, and the user account is convenient for multiple organization databases Data access and processing.

CN114238879BActive Publication Date: 2025-02-25BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111453419.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2025-02-25
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

In the software-as-a-service mode, the employee account and organization association model are single, resulting in cumbersome data processing operations and cannot meet the data management needs of multiple organizations.

Method used

By receiving a login switching request sent by a client with a user account, switching different identity identities in the user account, thereby switching the associated organization database, and realizing data access and processing of multiple organization databases by the same user account.

Benefits of technology

It breaks the single model of the user account being associated with an organization database, realizes convenient operation of user account access and processing data in different organization databases, and solves the problem of cumbersome data processing operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238879B_ABST
    Figure CN114238879B_ABST
Patent Text Reader

Abstract

The present invention relates to a data processing method and device, a storage medium and an electronic device. The method includes: receiving a login switching request sent by a client with a logged-in user account, wherein the user account includes a first identity identifier, the first identity identifier is used for the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to indicate switching the first identity identifier to a second identity identifier included in the user account; when the second identity identifier indicates that the identity is valid, determining the second organization database corresponding to the second identity identifier, and receiving an access request for accessing the second organization database sent by a client with a logged-in user account, wherein the second organization database is a database of a second organization object. The present invention solves the technical problem of cumbersome data processing operations caused by a single account and database association mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computers, and in particular to a data processing method and device. Background Art

[0002] In the software as a service (SaaS) model, employee accounts in organizational collaboration scenarios are mostly registered by employees and associated with the organization. However, the employee's data in the organization, such as personal chat data, is associated with the employee's registered account and is usually stored in the user account. If the employee leaves the organization, although the user account is disassociated from the organization, the user account will still retain the data previously related to the organization, and the security of this organizational data cannot be guaranteed.

[0003] At the same time, since a user account can only be associated with one organization in the same time period, it is naturally impossible to associate a user account with multiple organizations and manage the associated data of the user account in each organization. If multiple user accounts are associated with multiple organizations respectively, multiple accounts need to be managed at the same time, and the user account organization operation is not convenient enough.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The present invention provides a data processing method and device to at least solve the problem of cumbersome operation caused by the single mode of associating user accounts with organizations in the related art. The technical solution disclosed in the present invention is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, comprising: receiving a login switching request sent by a client with a user account logged in, wherein the user account includes a first identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to indicate switching the first identity identifier to a second identity identifier included in the user account; when the second identity identifier indicates that the identity is valid, determining a second organization database corresponding to the second identity identifier, and receiving an access request for accessing the second organization database sent by the client with the user account logged in, wherein the second organization database is a database of a second organization object.

[0007] According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, comprising: a receiving unit, configured to receive a login switching request sent by a client with a user account logged in, wherein the user account includes a first identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to indicate switching of the first identity identifier to a second identity identifier included in the user account; a switching unit, configured to determine a second organization database corresponding to the second identity identifier when the second identity identifier indicates that the identity is valid, and receive an access request for accessing the second organization database sent by the client with the user account logged in, wherein the second organization database is a database of a second organization object.

[0008] According to a third aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned data processing method when running.

[0009] According to a fourth aspect of an embodiment of the present invention, a computer program product is further provided, comprising a computer program / instruction, and the computer program / instruction implements the data processing method when executed by a processor.

[0010] According to a fifth aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the data processing method through the computer program.

[0011] In an embodiment of the present invention, a login switching request sent by a client with a logged-in user account is received, the login switching request is used to indicate switching from a first identity identifier to a second identity identifier, the user account includes a first identity identifier and a second identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and when the second identity identifier indicates that the identity is valid, the second organization database corresponding to the second identity identifier is determined, and an access request for accessing the second organization database sent by the client with the logged-in user account is received. By switching the first identity identifier and the second identity identifier included in the same user account, the corresponding first organization database is switched to the second database for data processing, thereby achieving the purpose of using different identity identifiers of the same user account to realize data processing in organization databases corresponding to different organization objects, and achieving the purpose of using the same user account to access and process data on different organization databases through convenient switching of identity identifiers, thereby breaking the single mode of associating the user account with one organization database, and realizing convenient operations of data access and processing of the user account in different organization databases, thereby solving the technical problem of cumbersome data processing operations caused by the single account-database association mode.

[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0014] Figure 1 The invention is a flow chart of a data processing method according to an exemplary embodiment.

[0015] Figure 2 The invention is a flowchart of a data processing method according to an exemplary embodiment.

[0016] Figure 3 The invention is a flow chart of a data processing method according to an exemplary embodiment.

[0017] Figure 4 The invention is a flow chart of a data processing method according to an exemplary embodiment.

[0018] Figure 5 It is an application block diagram of a data processing method according to an exemplary embodiment.

[0019] Figure 6It is a block diagram of a data processing device according to an exemplary embodiment.

[0020] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0021] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0023] According to one aspect of an embodiment of the present invention, a data processing method is provided. Optionally, the above data processing method can be but is not limited to being applied in a data interaction environment between a client and a server. Multiple organizational objects apply to create their own corresponding organizational databases in the server respectively. A user account is logged in to the client, and the user account is associated with the organizational database through the added identity identifier, so that the user account has the authority to log in to the corresponding organizational database through the identity identifier to perform data processing. The user account can add multiple identity identifiers to associate with multiple different organizational databases. In the case where the user account has added multiple identity identifiers, it is not limited to switching the identity identifier to achieve the switching of the accessed organizational database.

[0024] The above is only an example of an application environment and is not intended to limit the data processing method and application.

[0025] Figure 1 is a flow chart of a data processing method according to an exemplary embodiment. Figure 1 As shown, the data processing method applied on the server side at least includes the following S11-S12.

[0026] S11, receiving a login switching request sent by a client that has logged in a user account.

[0027] In S11, the user account includes a first identity identifier, and the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to indicate switching the first identity identifier to a second identity identifier included in the user account.

[0028] The same user account can include multiple identity identifiers, each of which is associated with an organization database in the server. The user account accesses the organization database based on the identity identifier associated with the organization database and performs data processing in the organization database. For the same user account, different identity identifiers are associated with different organization databases. Multiple identity identifiers can be added using the same user account, and multiple identity identifiers are associated with multiple different organization databases, which enables the same user account to access multiple organization databases, breaking the single association mode in which a user account can only be associated with one organization database, and achieving access to multiple organization databases using the same user account without switching user accounts, making data processing operations simple and convenient.

[0029] The identity is not limited to the two states of valid identity and invalid identity. When the identity is valid, the user account can access the associated organization database and process data with the identity. When the identity is invalid, the user account cannot access the associated organization database with the identity, and naturally cannot process data on the associated organization database.

[0030] S12, when the second identity identifier indicates that the identity is valid, determine a second organization database corresponding to the second identity identifier, and receive an access request for accessing the second organization database sent by a client logged in to the user account.

[0031] In S12, the second organization database is a database of a second organization object. The second organization object is different from the first organization object, and the first organization database and the second database are different databases in the same server.

[0032] In the client logged in by the user account, the identity is switched from the first identity to the second identity, and the organization database that the user account can access is switched from the first organization database to the second organization database. Different identity identifiers are used to associate different organization databases, which breaks the association between the user account and the organization database, and realizes the switching based on the identity in the same account, and switches the organization database that the user account can access.

[0033] In an embodiment of the present application, a login switching request sent by a client with a logged-in user account is received, the login switching request is used to indicate switching from a first identity identifier to a second identity identifier, the user account includes a first identity identifier and a second identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and when the second identity identifier indicates that the identity is valid, the second organization database corresponding to the second identity identifier is determined, and an access request for accessing the second organization database sent by the client with the logged-in user account is received. By switching the first identity identifier and the second identity identifier included in the same user account, the corresponding first organization database is switched to the second database for data processing, thereby achieving the purpose of using different identity identifiers of the same user account to realize data processing in organization databases corresponding to different organization objects, and achieving the purpose of using the same user account to access and process data on different organization databases through convenient switching of identity identifiers, thereby breaking the single mode of associating a user account with an organization database, and realizing convenient operations of data access and processing of the user account in different organization databases, thereby solving the technical problem of cumbersome data processing operations caused by the single account-database association mode.

[0034] As an optional implementation, before receiving the login switching request, using the user account to create a new organization database, such as a third organization database, includes:

[0035] S21, receiving an organization creation request initiated by a user account, wherein the organization creation request is used to request to create a third organization database in a server corresponding to the client;

[0036] S22, when the third organization database is created, add a third identity identifier to the user account, and establish an association relationship between the third identity identifier and the third organization database, wherein the third identity identifier is used by the user account to access the third organization database.

[0037] The user object using the user account can also be used as the organization object for creating the organization database. The client is not limited to the application client for managing the relationship between the user object and the organization object, and the organization object is not limited to any form corresponding to the enterprise, team, etc., including an object set of at least two user objects.

[0038] The third organization database is used to distinguish between the first organization database and the second organization database associated with the user account through the first identity identifier and the second identity identifier. When the user account is associated with the first organization database, the user object corresponding to the user account is determined as an object included in the first organization object. Similarly, when the user account is associated with the second organization database, the user object corresponding to the user account is determined as an object included in the second organization object. When the user account initiates the third organization database, the user object corresponding to the user account is determined as an object included in the third organization object.

[0039] When the user object initiates a request to create a third organization database based on the logged-in client, the server corresponding to the client allocates a corresponding third organization database to the third organization object to store the data of the third organization object, such as the organization structure, organization file data, organization dynamics, etc. Multiple organization databases in the server are independent of each other, and each organization database has independent data processing capabilities.

[0040] Each user account can be an account assigned by the server to the user object. The management of the user object in the organizational object is achieved by establishing an association between the user account and the organizational database. The association between the user account and the organizational database is established through an identity identifier. The identity identifier is not limited to indicating the data processing authority of the user account in the organizational database of the object. When a user account includes two or more identity identifiers, it means that the user account has the authority to access and process data with two or more organizational databases. Each identity identifier has a unique binding relationship with the associated organizational database. The identity identifier can be in a time-limited state, but the identity identifier cannot change the associated organizational database.

[0041] When a user object is used as an object in an organization object and a user account is used to create an organization database, the server automatically adds an associated identity to the user account when allocating the organization database so that the user account in the organization object has the authority to access the organization database.

[0042] In the embodiment of the present application, the server allocates different organizational databases to different organizational objects to achieve data isolation between each organizational object, thereby improving the data security in the organizational database. The user object uses different identity identifiers in the same user account to access and process the data in the associated organizational database, thereby improving the security of the user account in processing data in different organizational databases.

[0043] As an optional implementation mode, before receiving the login switching request, adding an identity identifier to the user account, taking adding a second identity identifier as an example, includes:

[0044] S31, receiving an identity adding request initiated by a user account, wherein the identity adding request is used to request to add a second identity identifier for the user account for accessing a second organization database;

[0045] S32, adding a second identity identifier to the user account, and establishing an association relationship between the second identity identifier and a second organization database.

[0046] When the user object is not the object that creates the organization database, the user object obtains the permission to join the organization object through an identity addition request, and uses the user account to access and process the data in the organization database.

[0047] The identity adding request is not limited to being forwarded by the server to the client logged in by the management account of the second organization object. If the management account of the second organization object approves the identity adding request, the second identity identifier is added to the user account. If the management account of the second organization object does not approve the identity adding request, the identity adding request initiated by the user account is rejected. The user account can access the second organization database and perform data processing with the second identity identifier only when the second identity identifier is added and the second identity identifier is valid.

[0048] In an embodiment of the present application, by adding an identity identifier to a user account, the user account is granted access rights and data processing rights to the organization database, thereby enabling the use of the same account to perform data processing in different organization databases isolated from each other on the same server.

[0049] As an optional implementation, Figure 2 As shown, before receiving the login switching request, the user account uses the first identity identifier to perform data processing in the first organization database, including but not limited to:

[0050] S41, receiving a data processing request, wherein the data processing request is a request initiated by a client logged in to a user account to perform data processing in a first organization database.

[0051] Optionally, the data processing request is a request initiated by a user account to process data in a first organization database. The data processing request carries an organization identifier for indicating the first organization database, and the organization identifier is used to determine that the data processing request initiated by the user account indicates that the first organization database is to perform data processing in the target application.

[0052] Optionally, the data processing request may be, but is not limited to, sending, editing, modifying, acquiring, calling, or a combination of two or more processing operations on the data in the organization's database, and sending is not limited to direct sending and sharing.

[0053] S42, in response to the data processing request, determining a first identity identifier associated with a first organization database in a user account, wherein the user account includes at least one identity identifier, and the at least one identity identifier is used to indicate the authority of the user account to perform data processing in at least one associated organization database.

[0054] Each identity identifier includes information indicating the validity of the identity identifier's authority. When the first identity identifier indicates that the identity is valid, it is determined that the first identity identifier in the user account is valid, and the user account currently has the authority to enter the first organization database for data processing. When the first identity identifier indicates that the identity is invalid, it is determined that the first identity identifier of the user account is invalid, and the user account currently does not have the authority to enter the first organization database for data processing. When the user account cannot enter the first organization database, it cannot process data in the first organization database.

[0055] S43, when the first identity identifier indicates that the identity is valid, searching the first data set corresponding to the first identity identifier in the first organization database, wherein the first data set is used to store data generated by the user account in the first organization database.

[0056] Optionally, the first organization database includes a plurality of data sets, each used to store data generated by different user accounts performing data processing in the first organization database. Different data sets in the first organization database correspond to different user accounts.

[0057] Optionally, the data generated by performing operations in the organization database may be, but is not limited to, data generated by operations of sending, editing, modifying, obtaining, and calling data, and the data may include, but is not limited to, behavior data and result data.

[0058] Optionally, when the identity identifier indicates that the identity is valid, the user account has the authority to enter the first organization database and process data in the first data set corresponding to the first identity identifier. When the identity identifier of the user account is invalid, the data set corresponding to the user account is not limited to being retained in the organization database. It is only that the invalid identity identifier will make the user account unable to access the organization database, that is, unable to access the corresponding data set.

[0059] S44, performing data processing in the first data set and updating the first data set.

[0060] Optionally, the data generated by the data processing of the user account is not limited to being stored in the first data set, and the first data set is updated by saving the data of the data processing, thereby obtaining an updated first data set. The operation data and processing results of the user account performing the operation in the first organization database are both saved in the first data set in the first organization database. When the first identity identifier of the user account is valid, the user account enters the first organization database through the first identity identifier, and the operation data and data results generated by performing the data processing operation are saved in the first data set.

[0061] In an embodiment of the present application, when a user account that has logged into a target application is obtained and a data processing request is initiated for a first organization database assigned to a first organization object in the target application, a first identity identifier used by the user account to access the first organization database is determined, the user account includes at least one identity identifier, and each identity identifier can be used to indicate the data processing authority of the user account in the corresponding organization database. When the first identity identifier indicates that the identity is valid, a first data set corresponding to the first identity identifier is searched in the first organization database, data processing is performed in the first data set, and the first data set is updated. By using the first identity identifier of the user account to enter the first organization database in the target application for data processing, a first data set corresponding to the first identity identifier is established in the first organization database for storing the data generated by the user account in the first organization database, thereby achieving the technical effect of using different identity identifiers to realize data interaction processing of organization databases corresponding to different organization objects in the application through one user account, and storing the generated data in the organization database, thereby improving the security of data processing.

[0062] As an optional implementation manner, after updating the first data set, the method further includes:

[0063] S51, receiving an identity invalidation request, wherein the identity invalidation request is used to request removal of the permission of the user account to process data in the first organization database;

[0064] S52, in response to the identity invalidation request, adjusting the first identity identifier to an invalid identity state, wherein, when the first identity identifier indicates that the identity is invalid, the user account is prohibited from accessing the first organization database.

[0065] Optionally, the identity identifier is in an identity valid state in an initial state. When the authority identifier indicates that the identity is valid, the user account enters the first organization database through the first identity identifier to perform data processing in the first organization database.

[0066] Optionally, permission expiration is used to indicate the invalid state of the permission of the identity identifier. The permission expiration request is used to request to prohibit the user account from entering the first organization database through the first identity identifier, thereby adjusting the first identity identifier to an invalid identity state. When the first identity identifier is invalid, the user account cannot enter the first organization database through the first identity identifier, that is, the user account's permission to enter the first organization database is invalid.

[0067] Optionally, the permission expiration request can be but is not limited to being initiated by the first organization object. When the user object corresponding to the user account is separated from the first organization object, the management account of the first organization object initiates a permission expiration request to prohibit the user account from entering the first organization database corresponding to the first organization object, thereby ensuring the security of the data in the first organization database.

[0068] In an embodiment of the present application, the first identity identifier is adjusted to an invalid state through a permission expiration request, so that the first identity identifier has no right to access and enter the first organization database, thereby achieving the technical effect of prohibiting the user account from entering the first organization database. Therefore, when the user account is unbound from the first organization object, the user account cannot enter the first organization database by means of the first identity identifier, access and process the data in the first organization database, thereby ensuring the security of the data in the first organization database.

[0069] As an optional implementation, after adjusting the first identity identifier to an invalid state, the method further includes: retaining the first data set organization in a first organization database.

[0070] Optionally, the first data set is created, run, and saved in the first organization database, regardless of the status of the first identity. When the first identity indicates that the identity is valid, the user account can enter the first organization database through the first identity to access and process the data in the first data set. When the first identity indicates that the identity is invalid, the user account cannot enter the first organization database through the first identity, and cannot access and process the data in the first data set, but the first data set is still retained in the first organization database, and the first data set after the last update is retained in the first organization database. After the first identity is invalid, the user account cannot process the first data set through the first identity, including clearing the data of the first data set, or clearing the first data set. At this time, the first data set is still retained in the first organization database, and whether it is cleared is determined by the first organization object.

[0071] In an embodiment of the present application, the user account is prohibited from entering the first organization database to access and process the data in the first data set by adjusting the first identity identifier to an invalid state. However, the first data set is retained in the first organization database, which not only ensures that the user account cannot access and process the first data set, ensures the security of the data in the first data set, but also ensures the organization object's processing authority over the data in the retained first data set, thereby facilitating data preservation.

[0072] As an optional implementation, Figure 3 As shown, determining the first identity identifier corresponding to the user account and the first organization database includes:

[0073] S421, obtaining all identity identifiers of the user account, wherein each identity identifier corresponds to an organization database in the target application;

[0074] S422, determining a first identity identifier corresponding to the first organization database from among all the identity identifiers.

[0075] Optionally, the user account is not limited to including multiple identity identifiers, and the first identity identifier corresponding to the first organization database is searched among all the identity identifiers. Each identity identifier among all the identity identifiers of the user account corresponds to an organization database in the target application, and the identity identifiers in the user account correspond to the organization database in the target application one-to-one, so that different organization databases can be entered through different identity identifiers for data processing.

[0076] In the embodiment of the present application, among the multiple identity identifiers of the user account, the same user account can enter different organization databases by switching identity identifiers. Without switching the user account, multiple identity identifiers are used to associate permissions with multiple organization databases, so that a user account can enter different organization databases for data processing by using different identity identifiers.

[0077] As an optional implementation, before obtaining the data processing request, it also includes: when adding a first identity identifier to the user account, creating a first data set corresponding to the first identity identifier in a first organization database associated with the first identity identifier.

[0078] Optionally, when a user account initiates a request for data processing on a first organization database through a first identity identifier for the first time, it is not limited to creating a first data set corresponding to the first identity identifier in the first organization database for storing data generated by the user account in the first organization database. The user account is associated with the first data set in the first organization database through the first identity identifier.

[0079] In the embodiment of the present application, by adding the first identity identifier for entering the first organization database to the first identity identifier, the first data set is created in the first organization database to store the data generated by the user account after entering the first organization database, and the user account accesses the first organization database while saving the data generated in the first organization database in the first organization database. The user account accesses and processes data in multiple organization databases, and the data is saved in each organization database to ensure the security of data access and processing.

[0080] As an optional implementation manner, adding the first identity identifier to the user account includes: configuring the first identity identifier to be in a valid state.

[0081] Optionally, when adding the first identity identifier to the user account, the first identity identifier is configured to be in a valid state. In the case where the user account obtains the first identity identifier to obtain access to the first organization database, the first identity identifier is configured to be in a valid state, indicating that the user account has the authority to access the first organization database, thereby enabling the user account to enter the first organization database through the first identity identifier.

[0082] In an embodiment of the present application, by configuring the first identity identifier to be in a valid state, it is possible to obtain permission for the user account to enter the first organization database by adding the first identity identifier to the user account, so that data processing can be performed in the first organization database.

[0083] As an optional implementation, before obtaining the data processing request, the method further includes: creating a user account.

[0084] Optionally, when the user object requests to log in to the client for the first time, a user account is created. The user account is an account used by the user object to log in to the client.

[0085] As an optional implementation manner, creating a user account includes: creating the user account using a first credential, wherein the first credential includes verification information for the user account to log in to the client.

[0086] Optionally, taking the example of creating a user account using the mobile phone number of the user object, a verification code sent by the server to the mobile phone number of the user object is used as the first credential, and the verification code is used together with the mobile phone number to create the mobile phone number as a user account.

[0087] As an optional implementation, Figure 4 As shown, creating a user account includes:

[0088] S61, obtaining an associated account of the user account and an associated credential of the associated account, wherein the associated account is a login account of an associated client associated with the client, and the associated credential is verification information allocated to the associated account;

[0089] S62: When the associated credential passes the client verification, the associated account including the associated credential is used as the user account.

[0090] Optionally, taking the case where the associated client associated with the client is any email client, obtain the email account (i.e. the associated account) used to log in to the email client. Obtain the verification information (associated credentials) sent by the server corresponding to the client to the email account, and use the email account and verification information as the user account to log in to the client.

[0091] by Figure 5 The application example shown specifically illustrates the above data processing method:

[0092] Assume that there are currently three user accounts, namely: Account 1, Account 2, Account 3; the organization databases assigned by the server to the four organization objects (Organization A, Organization B, Organization C, Organization D) are: Database A, Database B, Database C, Database D. Each user account logs in to the client of the target application through an account and credentials. The account and credentials that can log in to the client can be the user account and credentials created in the server, or an associated account and associated credentials. For example, Account 1 in the figure uses the registered user account 1 and credential 1, while Account 2 uses the associated account 2 and credential 2. The associated account is not limited to an email account.

[0093] After logging into the client using an account and credentials, you can view the identities in the account. In the figure, identity refers to identity. Each identity has a corresponding data set, which is represented by a set with a digital code in the figure. The set corresponding to the identity is stored in the corresponding organization database. Taking the example of logging into the client using user account 1 and credential 1, the identities included in account 1 are displayed in the client: identity 11 and identity 12. The pages related to database A are displayed in the client through identity 11, and the generated data is retained in set A1. When switching from identity 11 to identity 12, the pages related to database B are displayed in the client, and the generated data is retained in set B1.

[0094] Taking account 2 as an example, after logging into the client using associated account 2 and credential 2, it can be determined that there are currently three identities added to account 2, namely: identity 21, identity 22, and identity 23, which means that account 2 has the authority to enter the organizational databases corresponding to the three organizational objects. Identity 21 corresponds to set B2, that is, account 2 can access database B through identity 21, and save the processing results obtained by data processing in set B2, and update set B2. Switching the identity of account 2, for example, switching to identity 23, can access database D and process data through set D2 corresponding to identity 23, and save the processing results obtained by data processing in set D2, and update set D2.

[0095] In an embodiment of the present application, different identities are switched by the same account to achieve access and data processing of the organizational database corresponding to different organizational objects in the target application, and the processing results obtained by data processing are saved in the data set corresponding to the identity to ensure data security.

[0096] Figure 6 is a block diagram of a data processing device according to an exemplary embodiment. Figure 6 , the device includes a receiving unit 601 and a switching unit 602.

[0097] A receiving unit, configured to receive a login switching request sent by a client that has logged in a user account, wherein the user account includes a first identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to instruct switching the first identity identifier to a second identity identifier included in the user account;

[0098] The switching unit is used to determine the second organization database corresponding to the second identity identifier when the second identity identifier indicates that the identity is valid, and receive an access request for accessing the second organization database sent by a client logged in to a user account, wherein the second organization database is a database of a second organization object.

[0099] Optionally, the above-mentioned data processing device also includes an organization creation unit, which is used to receive an organization creation request initiated by a user account before receiving a login switching request, wherein the organization creation request is used to request the creation of a third organization database in a server corresponding to the client; when the third organization database is created, a third identity identifier is added to the user account, and an association relationship between the third identity identifier and the third organization database is established, wherein the third identity identifier is used for the user account to access the third organization database.

[0100] Optionally, the above-mentioned data processing device also includes an identity adding unit, which is used to receive an identity adding request initiated by a user account before receiving a login switching request, wherein the identity adding request is used to request to add a second identity identifier for the user account for accessing a second organization database; add the second identity identifier in the user account, and establish an association relationship between the second identity identifier and the second organization database.

[0101] Optionally, the above-mentioned data processing device also includes a data processing unit, which is used to receive a data processing request before receiving a login switching request, wherein the data processing request is a request for performing data processing in the first organization database initiated by a client logged in to a user account; in response to the data processing request, determine a first identity identifier associated with the first organization database in the user account, wherein the user account includes at least one identity identifier, and at least one identity identifier is used to indicate the user account's authority to perform data processing in at least one associated organization database; when the first identity identifier indicates that the identity is valid, search the first organization database for a first data set corresponding to the first identity identifier, wherein the first data set is used to store data generated by the user account in the first organization database; perform data processing in the first data set, and update the first data set.

[0102] Optionally, the above-mentioned data processing device also includes an identity invalidation unit, which is used to receive an identity invalidation request after updating the first data set, wherein the identity invalidation request is used to request to remove the user account's permission to process data in the first organization database; in response to the identity invalidation request, the first identity identifier is adjusted to an identity invalid state, wherein when the first identity identifier indicates that the identity is invalid, the user account is prohibited from entering the first organization database.

[0103] Optionally, the data processing device further comprises a data unit, configured to retain the first data set in the first organization database after the first identity identifier is adjusted to an invalid identity state.

[0104] Optionally, the data processing unit further includes:

[0105] An acquisition module, used to acquire all identity identifiers of a user account, wherein each identity identifier is associated with an organization database;

[0106] A determination module is used to determine a first identity identifier associated with a first organization database among all identity identifiers.

[0107] Optionally, the above-mentioned data processing device further includes an associating unit, which is used to create a first data set corresponding to the first identity identifier in a first organization database associated with the first identity identifier when the first identity identifier is added to the user account.

[0108] Optionally, the above-mentioned data processing device further includes an identity status unit, which is used to configure the first identity identifier to be in a valid identity status when the first identity identifier is added to the user account.

[0109] Optionally, the above-mentioned data processing device further includes an account creation unit, which is used to create a user account before obtaining the data processing request.

[0110] Optionally, the account creation unit includes: a first creation module, used to create a user account using a first credential, wherein the first credential includes verification information for the user account to log in to the client.

[0111] Optionally, the above-mentioned account creation unit includes: a second creation module, used to obtain an associated account of the user account and an associated credential of the associated account, wherein the associated account is a login account of an associated client associated with the client, and the associated credential is verification information assigned to the associated account; when the associated credential passes the client verification, the associated account containing the associated credential will be used as the user account.

[0112] In an embodiment of the present invention, a login switching request sent by a client with a logged-in user account is received, the login switching request is used to indicate switching from a first identity identifier to a second identity identifier, the user account includes a first identity identifier and a second identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and when the second identity identifier indicates that the identity is valid, the second organization database corresponding to the second identity identifier is determined, and an access request for accessing the second organization database sent by the client with the logged-in user account is received. By switching the first identity identifier and the second identity identifier included in the same user account, the corresponding first organization database is switched to the second database for data processing, thereby achieving the purpose of using different identity identifiers of the same user account to realize data processing in organization databases corresponding to different organization objects, and achieving the purpose of using the same user account to access and process data on different organization databases through convenient switching of identity identifiers, thereby breaking the single mode of associating the user account with one organization database, and realizing convenient operations of data access and processing of the user account in different organization databases, thereby solving the technical problem of cumbersome data processing operations caused by the single account-database association mode.

[0113] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0114] According to another aspect of the embodiment of the present invention, an electronic device for implementing the above data processing method is also provided, and the electronic device may be a terminal device or a server. This embodiment is described by taking the electronic device as a server as an example. Figure 7 As shown, the electronic device includes a memory 702 and a processor 704. The memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any of the above method embodiments through the computer program.

[0115] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0116] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0117] S1, receiving a login switching request sent by a client logged in to a user account, wherein the user account includes a first identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to instruct switching the first identity identifier to a second identity identifier included in the user account;

[0118] S2, when the second identity identifier indicates that the identity is valid, determine the second organization database corresponding to the second identity identifier, and receive an access request for accessing the second organization database sent by a client logged in to the user account, wherein the second organization database is a database of the second organization object.

[0119] Alternatively, a person skilled in the art may understand that: Figure 7 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an IOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 7 Different configurations are shown.

[0120] Among them, the memory 702 can be used to store software programs and modules, such as program instructions / modules corresponding to the data processing method and device in the embodiment of the present invention. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, realizing the above-mentioned data processing method. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 702 may further include a memory remotely located relative to the processor 704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an organizational intranet, a local area network, a mobile communication network, and combinations thereof. Among them, the memory 702 may be specifically, but not limited to, used to store information such as user accounts, organizational databases, and organizational data sets. As an example, such as Figure 7 As shown, the memory 702 may include but is not limited to the receiving unit 601 and the switching unit 602 in the data processing device. In addition, it may also include but is not limited to other module units in the data processing device, which will not be described in detail in this example.

[0121] Optionally, the transmission device 706 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 706 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0122] In addition, the electronic device further includes: a display 708 for displaying the user account, identity identification, etc.; and a connection bus 710 for connecting various module components in the electronic device.

[0123] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data processing method provided in various optional implementations of the above-mentioned data processing aspects. The computer program is configured to execute the steps of any of the above-mentioned method embodiments when it is run.

[0124] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0125] S1, receiving a login switching request sent by a client logged in to a user account, wherein the user account includes a first identity identifier, the first identity identifier is used by the user account to access a first organization database associated with the first identity identifier, the first organization database is a database of a first organization object, and the login switching request is used to instruct switching the first identity identifier to a second identity identifier included in the user account;

[0126] S2, when the second identity identifier indicates that the identity is valid, determine the second organization database corresponding to the second identity identifier, and receive an access request for accessing the second organization database sent by a client logged in to the user account, wherein the second organization database is a database of the second organization object.

[0127] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0128] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0129] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.

[0130] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0131] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0132] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0133] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: include: In response to the data processing request, determining a first identity identifier associated with a first organization database in a user account, wherein the user account includes at least one identity identifier, and the at least one identity identifier is used to indicate the authority of the user account to process data in at least one associated organization database, and the organization database is a storage space allocated by a server to an organization object, and the organization database includes data of multiple user accounts; When the first identity identifier indicates that the identity is valid, searching the first data set corresponding to the first identity identifier in the first organization database; performing data processing in the first data set, and updating the first data set, wherein the first data set is used to store the data generated by the user account in the first organization database; If the first identity identifier indicates that the identity is invalid, prohibiting the user account from accessing the first organization database; Upon receiving a login switching request sent by a client logged in with the user account, and when the identity indicated by the second identity included in the user account is valid, determining a second organization database corresponding to the second identity, and receiving an access request for accessing the second organization database sent by the client logged in with the user account, wherein the login switching request is used to indicate switching the first identity to the second identity included in the user account; When receiving an identity invalidation request, the first identity identifier is adjusted to an invalid identity state; after the first identity identifier is adjusted to an invalid identity state, the first data set is retained in the first organization database, wherein the identity invalidation request is used to request removal of the user account's permission to process data in the first organization database.

2. The method according to claim 1, characterized in that Before receiving the login switching request sent by the client that has logged in the user account, the method further includes: receiving an organization creation request initiated by the user account, wherein the organization creation request is used to request to create a third organization database in a server corresponding to the client; When the third organization database is created, a third identity identifier is added to the user account, and an association relationship between the third identity identifier and the third organization database is established, wherein the third identity identifier is used by the user account to access the third organization database.

3. The method according to claim 1, characterized in that Before receiving the login switching request sent by the client that has logged in the user account, the method further includes: Receiving an identity adding request initiated by the user account, wherein the identity adding request is used to request adding a second identity identifier for the user account for accessing the second organization database; The second identity identifier is added to the user account, and an association relationship between the second identity identifier and the second organization database is established.

4. The method according to claim 1, characterized in that: Before receiving the login switching request sent by the client that has logged in the user account, the method further includes: A data processing request is received, wherein the data processing request is a request for performing data processing in the first organization database initiated by a client logged in to the user account.

5. The data processing method according to claim 1, characterized in that: Determining the first identity identifier corresponding to the user account and the first organization database includes: Obtaining all identity identifiers of the user account, wherein each of the identity identifiers is associated with an organization database; The first identity identifier associated with the first organization database is determined from among the entire identity identifiers.

6. The data processing method according to claim 1, characterized in that: When the first identity identifier is added to the user account, the first data set corresponding to the first identity identifier is created in the first organization database associated with the first identity identifier.

7. The data processing method according to claim 6, characterized in that: Adding the first identity identifier to the user account includes: The first identity identifier is configured as a valid identity state.

8. The data processing method according to claim 4, characterized in that: Before receiving a data processing request, it also includes: Create the user account.

9. The data processing method according to claim 8, characterized in that: The creating the user account comprises: The user account is created using a first credential, wherein the first credential includes verification information for the user account to log in to the client.

10. The data processing method according to claim 9, characterized in that: The creating the user account comprises: Acquire an associated account of the user account and an associated credential of the associated account, wherein the associated account is a login account of an associated client associated with the client, and the associated credential is verification information allocated to the associated account; In the case where the associated credential passes the verification by the client, the associated account including the associated credential is used as the user account.

11. A data processing device, characterized in that: include: The data processing device is used to: respond to a data processing request, determine a first identity identifier associated with a first organization database in a user account, wherein the user account includes at least one identity identifier, and the at least one identity identifier is used to indicate the user account's authority to process data in at least one associated organization database, and the organization database is a storage space allocated by a server to an organization object, and the organization database includes data of multiple user accounts; when the first identity identifier indicates that the identity is valid, search the first organization database for a first data set corresponding to the first identity identifier; perform data processing in the first data set, and update the first data set, wherein the first data set is used to store the data generated by the user account in the first organization database; when the first identity identifier indicates that the identity is invalid, prohibit the first data set from being processed. The user account enters the first organization database; upon receiving a login switching request sent by a client logged in with the user account, and the identity indicated by the second identity included in the user account is valid, determining the second organization database corresponding to the second identity, and receiving an access request for accessing the second organization database sent by the client logged in with the user account, wherein the login switching request is used to indicate switching the first identity to the second identity included in the user account; upon receiving an identity invalidation request, adjusting the first identity to an identity invalid state; after adjusting the first identity to an identity invalid state, retaining the first data set in the first organization database, wherein the identity invalidation request is used to request removal of the user account's permission to process data in the first organization database.

12. The device according to claim 11, characterized in that The data processing device also includes an organization creation unit, which is used to receive an organization creation request initiated by the user account before receiving a login switching request sent by the client that is logged in to the user account, wherein the organization creation request is used to request the creation of a third organization database in the server corresponding to the client; when the creation of the third organization database is completed, a third identity identifier is added to the user account, and an association relationship between the third identity identifier and the third organization database is established, wherein the third identity identifier is used by the user account to access the third organization database.

13. The device according to claim 11, characterized in that The data processing device also includes an identity adding unit, which is used to receive an identity adding request initiated by the user account before receiving a login switching request sent by the client that is logged in to the user account, wherein the identity adding request is used to request to add a second identity identifier for the user account for accessing the second organization database; add the second identity identifier in the user account, and establish an association between the second identity identifier and the second organization database.

14. The device according to claim 11, characterized in that The data processing device also includes a data processing unit, which is used to receive a data processing request before receiving a login switching request sent by the client logged in to the user account, wherein the data processing request is a request initiated by the client logged in to the user account to perform data processing in the first organization database.

15. The data processing device according to claim 11, characterized in that: The data processing device is also used to obtain all identity identifiers of the user account, wherein each of the identity identifiers is associated with an organization database; and determine the first identity identifier associated with the first organization database among all the identity identifiers.

16. The data processing device according to claim 15, characterized in that: The data processing device further comprises an associating unit, which is used to create the first data set corresponding to the first identity identifier in the first organization database associated with the first identity identifier when the first identity identifier is added to the user account.

17. The data processing device according to claim 16, characterized in that: The data processing device further comprises an identity status unit, which is used to configure the first identity identifier to be in a valid identity status when the first identity identifier is added to the user account.

18. The data processing device according to claim 14, characterized in that: The data processing device further comprises an account creation unit, which is used to create the user account before receiving the data processing request.

19. The data processing device according to claim 18, characterized in that: The account creation unit includes: The first creation module is used to create the user account using a first credential, wherein the first credential includes verification information of the user account for logging into the client.

20. The data processing device according to claim 19, characterized in that The account creation unit includes: The second creation module is used to obtain the associated account of the user account and the associated credentials of the associated account, wherein the associated account is the login account of the associated client associated with the client, and the associated credential is the verification information assigned to the associated account; when the associated credential passes the verification of the client, the associated account including the associated credential is used as the user account.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, and the program executes the method described in any one of claims 1 to 10 when executed.

22. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.

23. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 10 through the computer program.

Citation Information

Patent Citations

  • Method and system for achieving and switching multiple roles of same account of social network

    CN104270348A