# Pre User Registration flow action with social signup

**URL:** <https://community.auth0.com/t/pre-user-registration-flow-action-with-social-signup/97432>\
**Category:** Get Help\
**Tags:** account-linking, user-management\
**Created:** [January 3, 2023, 10:16pm UTC](https://community.auth0.com/t/pre-user-registration-flow-action-with-social-signup/97432 "2023-01-03T22:16:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmanza](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bmanza/32/36058_2.png) [@bmanza](https://community.auth0.com/u/bmanza)\
**Post date:** [January 3, 2023, 10:16pm UTC](https://community.auth0.com/t/pre-user-registration-flow-action-with-social-signup/97432/1 "2023-01-03T22:16:50Z")

</div>

I have setup an action for pre user registration flow to setup the user first on our end so we can return back an id to store on auith0’s side. This works great when registering a user with email and password. However, when I register using google or linkedin etc this action is not called. Any idea / suggestion for a work around this?

Appreciate any help on this, thanks!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 3, 2023, 10:36pm UTC](https://community.auth0.com/t/pre-user-registration-flow-action-with-social-signup/97432/3 "2023-01-03T22:36:47Z")

</div>

Hi @bmanza,

Welcome to the Auth0 Community!

For Social Connection users, I recommend using a Post-login action to add your custom logic.

For example:

```auto
exports.onExecutePostLogin = async (event, api) => {
  if (event.stats.logins_count === 1 && event.connection.strategy === event.connection.name){
  //Your logic here  
}
};

```

Reference doc: [Actions Triggers: post-login - Event Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object)

Does that help?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![bmanza](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bmanza/32/36058_2.png) [@bmanza](https://community.auth0.com/u/bmanza)\
**Post date:** [January 4, 2023, 4:59pm UTC](https://community.auth0.com/t/pre-user-registration-flow-action-with-social-signup/97432/4 "2023-01-04T16:59:48Z")

</div>

thanks @rueben.tiow! Appreciate the reply, this will work for us

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 18, 2023, 5:00pm UTC](https://community.auth0.com/t/pre-user-registration-flow-action-with-social-signup/97432/5 "2023-01-18T17:00:07Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
