# Link SSO accounts with already exist accounts

**URL:** <https://community.auth0.com/t/link-sso-accounts-with-already-exist-accounts/77760>\
**Category:** Get Help\
**Tags:** account-linking, sso, connections\
**Created:** [February 6, 2022, 2:11pm UTC](https://community.auth0.com/t/link-sso-accounts-with-already-exist-accounts/77760 "2022-02-06T14:11:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexeyf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexeyf/32/34621_2.png) [@alexeyf](https://community.auth0.com/u/alexeyf)\
**Post date:** [February 6, 2022, 5:13pm UTC](https://community.auth0.com/t/link-sso-accounts-with-already-exist-accounts/77760/2 "2022-02-06T17:13:21Z")

</div>

I found that there is a way to link accounts through actions. Will move this way.

> [@Account linking through Actions](https://community.auth0.com/t/account-linking-through-actions/68940):
>
> Hi, lately I’ve been struggling with simple email account linking. I’ve tried the “Account Linking Extension”, but it turned out not to be an option for my use case, because it requires the user to manually confirm the linking though the UI. Then I tried to use actions (specifically the “Post login” flow) and it indeed links accounts with the same email addresses, but then it returns the original user id. For example: I sign in with GitHub (github|...) I sign out I sign in again in with use…

> [@Account linking using Action during Post User Registration](https://community.auth0.com/t/account-linking-using-action-during-post-user-registration/73019):
>
> Hi everyone, I’m trying to implement a seamless account linking routine, but still without success, although I’ve found some success stories from the community like the one from [Alexab](https://community.auth0.com/t/account-linking-with-auth0-actions/60676). I’m doing the whole process using an Action during [Post User Registration flow](https://auth0.com/docs/actions/triggers/post-user-registration), and the code can be consulted in [this repository](https://github.com/willianantunes/auth0-custom-universal-login) on GitHub. I wrote [this integration test](https://github.com/willianantunes/auth0-custom-universal-login/blob/4631141e6f4b56d13ac23c120ad383daaafa44a8/tests/src/actions/action-post-user-registration-account-linking.spec.test.js#L19-L71), and I could manually assert that the logic was working as expected. To test it manually, I created two users with the same email address, the…

---

_[View the full topic](https://community.auth0.com/t/link-sso-accounts-with-already-exist-accounts/77760)._
