# How to know the clientid/application the user is using for sign up with Auth0 Hooks

**URL:** <https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596>\
**Category:** Get Help\
**Created:** [October 14, 2020, 6:38pm UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596 "2020-10-14T18:38:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdelannoy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdelannoy/32/17296_2.png) [@jdelannoy](https://community.auth0.com/u/jdelannoy)\
**Post date:** [October 14, 2020, 6:38pm UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596/1 "2020-10-14T18:38:42Z")

</div>

Hello, I need to know what application the user is using for the signup because I need to insert that user in the corresponding environment database.  
I debugged the hooks context object and didn’t find any useful…

Thanks in advanced,  
Jean

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 15, 2020, 10:42am UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596/2 "2020-10-15T10:42:24Z")

</div>

Hey there!

You can get that using Rules context object and its properties:

> **[Context Object Properties in Rules](https://auth0.com/docs/customize/rules/context-object)**
>
> Learn about the properties of the Rules context object, which stores information about users' IP addresses, applications, and location.

---

<div class="post-metadata">

**Author:** ![jdelannoy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdelannoy/32/17296_2.png) [@jdelannoy](https://community.auth0.com/u/jdelannoy)\
**Post date:** [October 15, 2020, 3:24pm UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596/3 "2020-10-15T15:24:14Z")

</div>

Hello Konrad, I’m using the Post User Registration Hook not a Rule.

Thanks,  
Jean

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 15, 2020, 3:29pm UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596/4 "2020-10-15T15:29:59Z")

</div>

I checkd the Hooks docs right now and the only thing I could have thought of that will provide you with the clientID / application is app\_metadata:

> **[Post-User Registration](https://auth0.com/docs/customize/hooks/extensibility-points/post-user-registration)**
>
> Learn how hooks can be used with the Post-User Registration extensibility point, which is available for database connections and passwordless connections.

so you can use certain info to each app / client app\_metadata so you can differ based on those as app\_metadata cannot include directly thee clienID. More on that here:

> **[Metadata Field Names and Data Types](https://auth0.com/docs/manage-users/user-accounts/metadata/metadata-fields-data)**
>
> Describes user metadata, app metadata, and application (client) metadata field names, data types, and limitations and restrictions.

---

<div class="post-metadata">

**Author:** ![jdelannoy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdelannoy/32/17296_2.png) [@jdelannoy](https://community.auth0.com/u/jdelannoy)\
**Post date:** [October 16, 2020, 7:21pm UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596/5 "2020-10-16T19:21:51Z")

</div>

😕 😕😕

---

<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:** [October 31, 2020, 7:21pm UTC](https://community.auth0.com/t/how-to-know-the-clientid-application-the-user-is-using-for-sign-up-with-auth0-hooks/51596/6 "2020-10-31T19:21:56Z")

</div>

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