Last Updated: Sep 16, 2024
Overview
This article clarifies whether it is possible to link user accounts using post-login action.
Applies To
- Account Linking
- Actions
- Post-Login
Solution
Actions can used to call the Management API to link user accounts. Auth0 does not automatically change to the correct primary user after Account Linking, so it must be changed within the Actions code upon successful Account Linking with api.authentication.setPrimaryUser()
.
The process for linking accounts in actions, along with an example can be found here: Account Linking with Actions.