# How to determine the calling application within PostUserRegistration

**URL:** <https://community.auth0.com/t/how-to-determine-the-calling-application-within-postuserregistration/132084>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [April 16, 2024, 7:43am UTC](https://community.auth0.com/t/how-to-determine-the-calling-application-within-postuserregistration/132084 "2024-04-16T07:43:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoshida\_seiichi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yoshida_seiichi/32/39416_2.png) [@yoshida\_seiichi](https://community.auth0.com/u/yoshida_seiichi)\
**Post date:** [April 16, 2024, 7:43am UTC](https://community.auth0.com/t/how-to-determine-the-calling-application-within-postuserregistration/132084/1 "2024-04-16T07:43:05Z")

</div>

Hello,

In our Auth0 tenant, we have multiple applications: A, B, and C. I need to implement specific processing for registrations coming from Application A in the PostUserRegistration action. How can I determine within the PostUserRegistration action that the registration came from Application A?

Thank you.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 25, 2024, 10:25pm UTC](https://community.auth0.com/t/how-to-determine-the-calling-application-within-postuserregistration/132084/3 "2024-04-25T22:25:01Z")

</div>

Hey there @yoshida_seiichi!

Apologize for the delay here - There’s no way to determine the `client_id` in a post user registration action as there there is no `event.client` object. Instead you would need to look into utilizing a post login action similar to what’s described here:

> [@Access client\_id in a post-user-registration Action](https://community.auth0.com/t/access-client-id-in-a-post-user-registration-action/69276/3):
>
> Hi @christien.guy, Welcome to the Auth0 Community! It looks like the post user registration Actions doesn’t include the event.client property, unlike the post login action. The best way to workaround this would be to use a post login action. You can set a flag in the user’s metadata to indicate they have been added to your CRM after a successful update, or set it to run based on the event.stats.logins\_count. Does that make sense?

---

<div class="post-metadata">

**Author:** ![yoshida\_seiichi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yoshida_seiichi/32/39416_2.png) [@yoshida\_seiichi](https://community.auth0.com/u/yoshida_seiichi)\
**Post date:** [May 1, 2024, 5:27am UTC](https://community.auth0.com/t/how-to-determine-the-calling-application-within-postuserregistration/132084/4 "2024-05-01T05:27:41Z")

</div>

Mr. TIF

Hello.  
Thanks for the helpful topic.  
It would have been nice if the client\_id could have been referenced, but alas!  
We will look into using metadata.

Thank you so much.

---

<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:** [May 15, 2024, 5:27am UTC](https://community.auth0.com/t/how-to-determine-the-calling-application-within-postuserregistration/132084/5 "2024-05-15T05:27:50Z")

</div>

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