Merge User Accounts

Use the mergeUser mutation to merge two user accounts.

This process will move labs and notes from an origin user into the target user's profile. The origin user will not be automatically deleted. If you wish to delete an account, you can use the deleteProfile mutation.

The merge will fail if the origin user has appointments scheduled for a future date.

Arguments

Argument

Type

Description

userOrigin

base64UserId!

The ID of the user whose profile data will be merged.

userTarget

base64UserID!

The ID of the user who will receive the merged data.

Example

mutation {
  mergeUser(
    userOrigin: "TWVtYmVyOjBhMTA3YWM5LTg4Y2EtNGJkYy1iOTdhLWIyODE4NDA1ODVjZX=="
    userTarget: "TWVtYmVyOjBhMTA3YWM7LTg4Y2EtNGJkYy1hOTdhLWIyODE4NDA19DVjZX=="
  ) {
    success
    message
    errors {
      field
      messages
    }
  }
}

Last updated