Skip to main content
Use the Auth0 Unlink a User Account endpoint or the Auth0.js library to unlink an identity from the target user account making it a separate user account again. The result of the unlinking process is the following:
  • The secondary account is removed from the identities array of the primary account.
  • A new secondary user account is created.
  • The secondary account will have no metadata.
If your goal is to delete the secondary identity entirely, you must first unlink the accounts, and then delete the newly created secondary account. Depending on from where you call the endpoint, use one of these two scopes: The endpoint uses the following parameters: If your instance has users from multiple providers, you may also include [connection_name]| before the user_id stringto name the provider (for example, "user-id": "google-oauth2|123456789081523216417").

Response example

Use JWT from the primary account

To unlink accounts, call the Management API Unlink a User Account endpoint using the from the primary account for authorization:

Use Access Token with the update:users scope

If you need to unlink two or more user accounts, call the Management API Unlink a User Account endpoint using an Management API Access Token with the update:users scope.
  1. Update the user in session with the new array of identities (each of which represent a separate user account).
  1. Call the Management API v2 Unlink a User Account endpoint using an Management API Access Token with the update:users scope.

Learn more