# Actions is not working for PostUser Registration

**URL:** <https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [June 28, 2024, 11:49am UTC](https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710 "2024-06-28T11:49:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramguy007](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ramguy007/32/58168_2.png) [@ramguy007](https://community.auth0.com/u/ramguy007)\
**Post date:** [June 28, 2024, 11:49am UTC](https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710/1 "2024-06-28T11:49:57Z")

</div>

post user registration is not working ? i have set an action which basically post to my api with payload of newly signed up user in auth0 which i can get from event params of action function. below is the action code.

const axios = require(“axios”);  
exports.onExecutePostUserRegistration = async (event, api) =\> {  
const {user,secrets} = event;  
const payload={  
auth0id:user.user\_id,  
email:user.email,  
fullname:user.name  
}  
await axios.post(secrets.REGISTER\_URL,payload);  
}  
the user is not created in my mongodb database ??

as i didnot find any tag for the relevent i have just added random tag?? how the heck they supposed not to add tag which is a part of their application there is not tag for “actions”,“post-user-registration”,“preuser-registration”??

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 28, 2024, 12:42pm UTC](https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710/2 "2024-06-28T12:42:16Z")

</div>

Hi @ramguy007

Welcome to the Auth0 Community!

I’ve checked your tenant logs, and the only error I’ve seen regarding post-user registration action is [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504). Can you check if your API endpoint is publicly accessible?

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![ramguy007](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ramguy007/32/58168_2.png) [@ramguy007](https://community.auth0.com/u/ramguy007)\
**Post date:** [June 28, 2024, 3:22pm UTC](https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710/3 "2024-06-28T15:22:45Z")

</div>

am i getting wrong here ,let me explain correct me if am wrong .  
post-user-registration , if i signup new user i.e from the UI provided my auth0. the customAction inside post-user-registration will execute after the user had been register ?is it .  
if then the above action does not execute however the same custom action works inside Action \>flows\>Login . why is that??

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 28, 2024, 3:26pm UTC](https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710/4 "2024-06-28T15:26:55Z")

</div>

The Post-User registration action is triggered only for Database or Passwordless connection when a new customer signing in. It won’t launch for the other connection types. On the other hand the post-login action is launched for all connection types.

---

<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:** [July 12, 2024, 3:27pm UTC](https://community.auth0.com/t/actions-is-not-working-for-postuser-registration/137710/5 "2024-07-12T15:27:07Z")

</div>

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