# Post registration action is not firing

**URL:** <https://community.auth0.com/t/post-registration-action-is-not-firing/125857>\
**Category:** Get Help\
**Tags:** other, missing-category\
**Created:** [January 27, 2024, 9:01pm UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857 "2024-01-27T21:01:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sakshi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sakshi](https://community.auth0.com/u/sakshi)\
**Post date:** [January 27, 2024, 9:01pm UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/1 "2024-01-27T21:01:22Z")

</div>

I have created a custom action which works fine using the trial run.  
I have hooked this action into the post registration workflow. However, on a new user signup, this doesn’t get triggered.  
I have attached a screenshot of how the flow looks. As well as logs from real time webtask logs. The first logs around 2:11 AM are when the signup happened, it printed these, but didn’t actually execute the action.  
And the logs after 2:26 AM are of the event that I manually ran using the play button on actions configuration screen - in that you can see there is a logline : “I AM IN THIS HOOK”.

How can I troubleshoot this further?

 ![Screenshot 2024-01-28 at 2.28.32 AM](https://global.discourse-cdn.com/auth0/original/3X/9/0/90edb582d22b00f075d67725a8dee91576732b41.png)  
 ![Screenshot 2024-01-28 at 2.29.09 AM](https://global.discourse-cdn.com/auth0/original/3X/9/6/9643a43623875dcb873689d34e245a4d4423b677.png)

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [January 28, 2024, 2:44pm UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/2 "2024-01-28T14:44:27Z")

</div>

Hi @sakshi

Welcome to the Auth0 Community.

I understand you’re finding that on your Sign Up flow the Post Registration Action is not being triggered. Please note that the Post Registration Action is only triggered for users within a database or passwordless connection as per our documentation here [https://auth0.com/docs/customize/actions/flows-and-triggers/post-user-registration-flow](https://auth0.com/docs/customize/actions/flows-and-triggers/post-user-registration-flow) so for example, a social connection will not trigger it.

Are you using either a database or passwordless connection?

Warm regards.

---

<div class="post-metadata">

**Author:** ![sakshi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sakshi](https://community.auth0.com/u/sakshi)\
**Post date:** [January 29, 2024, 6:27am UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/3 "2024-01-29T06:27:19Z")

</div>

I see. I am using social logins: google, github.  
For social logins, for a new user signup, which action can I use?

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [January 29, 2024, 4:14pm UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/4 "2024-01-29T16:14:38Z")

</div>

Hi @sakshi

You can use a [post login action](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow) for social sign ups. Strictly speaking the social sign up is more or less the same as a login, the difference being a local account on the Auth0 side is created the first time a social user logs in/signs up and the login action will execute.

Warm regards.

---

<div class="post-metadata">

**Author:** ![sakshi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sakshi](https://community.auth0.com/u/sakshi)\
**Post date:** [January 29, 2024, 4:23pm UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/5 "2024-01-29T16:23:09Z")

</div>

I’d also like to differentiate between the first time user and repeat user login. Essentially I am logging an event in my event tracker on all user actions, and sign up is kind of an important one. Is there no way to do that?

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [January 30, 2024, 9:54am UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/6 "2024-01-30T09:54:14Z")

</div>

Hi @sakshi

You may be able to harness the **event.stats.logins\_count** property for that in a post login action, so a value of 1 would be first login [https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object)

Warm regards

---

<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:** [February 13, 2024, 9:55am UTC](https://community.auth0.com/t/post-registration-action-is-not-firing/125857/7 "2024-02-13T09:55:16Z")

</div>

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