# Access client\_id in a post-user-registration Action

**URL:** <https://community.auth0.com/t/access-client-id-in-a-post-user-registration-action/69276>\
**Category:** Get Help\
**Created:** [September 8, 2021, 7:33am UTC](https://community.auth0.com/t/access-client-id-in-a-post-user-registration-action/69276 "2021-09-08T07:33:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christien.guy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/christien.guy/32/25742_2.png) [@christien.guy](https://community.auth0.com/u/christien.guy)\
**Post date:** [September 8, 2021, 7:33am UTC](https://community.auth0.com/t/access-client-id-in-a-post-user-registration-action/69276/1 "2021-09-08T07:33:05Z")

</div>

Hello,

I’m trying to store a record of a user in a CRM, it seems like the post-user-registration trigger with Actions is the ideal way to do this.

However, I have multiple clients on the same tenant and I only want to add this user to the CRM if it comes from a specific client.

In Rules you had access to the client\_id on the context object but I can’t see any equivalent in the event object passed into the post-user-registration Action.

Is there any way to access this in the post-user-registration Action?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 9, 2021, 10:38pm UTC](https://community.auth0.com/t/access-client-id-in-a-post-user-registration-action/69276/3 "2021-09-09T22:38:57Z")

</div>

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:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2021, 4:54pm UTC](https://community.auth0.com/t/access-client-id-in-a-post-user-registration-action/69276/4 "2021-12-23T16:54:03Z")

</div>

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