Link a User Account
Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities.
Note: There are two ways of invoking the endpoint:
-
With the authenticated primary account’s JWT in the Authorization header, which has the
update:current_user_identitiesscope:In this case, only the
link_withparam is required in the body, which also contains the JWT obtained upon the secondary account’s authentication. -
With a token generated by the API V2 containing the
update:usersscope:In this case you need to send
provideranduser_idin the body. Optionally you can also send theconnection_idparam which is suitable for identifying a particular database connection for the ‘auth0’ provider.
Authorizations
Body
Identity provider of the secondary user account being linked.
ad, adfs, amazon, apple, dropbox, bitbucket, auth0-oidc, auth0, baidu, bitly, box, custom, daccount, dwolla, email, evernote-sandbox, evernote, exact, facebook, fitbit, github, google-apps, google-oauth2, instagram, ip, line, linkedin, oauth1, oauth2, office365, oidc, okta, paypal, paypal-sandbox, pingfederate, planningcenter, salesforce-community, salesforce-sandbox, salesforce, samlp, sharepoint, shopify, shop, sms, soundcloud, thirtysevensignals, twitter, untappd, vkontakte, waad, weibo, windowslive, wordpress, yahoo, yandex Response
Identity successfully added.