# How to access organization on pre or post user registration flow from an action

**URL:** <https://community.auth0.com/t/how-to-access-organization-on-pre-or-post-user-registration-flow-from-an-action/101186>\
**Category:** Get Help\
**Tags:** actions-management-api, management-api\
**Created:** [February 23, 2023, 9:30pm UTC](https://community.auth0.com/t/how-to-access-organization-on-pre-or-post-user-registration-flow-from-an-action/101186 "2023-02-23T21:30:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dak2009](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dak2009/32/44901_2.png) [@dak2009](https://community.auth0.com/u/dak2009)\
**Post date:** [February 23, 2023, 9:30pm UTC](https://community.auth0.com/t/how-to-access-organization-on-pre-or-post-user-registration-flow-from-an-action/101186/1 "2023-02-23T21:30:38Z")

</div>

I have a tenant with multiple organizations. When the user accepts the invitation an external task needs to be run. The problem is I need to know the `org_id` and `user_id` to complete the external task during either a pre or post user registration flow.

- Can I access the context to get the organization org\_id?

---

<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:** [February 23, 2023, 11:53pm UTC](https://community.auth0.com/t/how-to-access-organization-on-pre-or-post-user-registration-flow-from-an-action/101186/3 "2023-02-23T23:53:05Z")

</div>

Hey there @dak2009 !

Organization data is only available in a Post Login Action [event object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object) - This has certainly come up before so it may be worth adding a [feedback request](https://community.auth0.com/c/feedback/95) as I am not seeing anything directly related.

> [@Organization Information on Preregistration/Postregistration action events?](https://community.auth0.com/t/organization-information-on-preregistration-postregistration-action-events/90229/3):
>
> Hey there @openbridge-james! Unfortunately, the event.organization object is currently only available in the Post Login Action - I definitely recommend creating a [feedback request](https://community.auth0.com/c/feedback/95) for this if you are up for it. I did a quick search and it looks like this hasn’t been added previously, but is a common ask. Our product team monitors these requests closely and the request makes total sense to me pray As an aside, it looks like the data you need may be available via /api/v2/users/{id}/organization…

Hope this helps to clarify.

---

<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:** [March 9, 2023, 11:53pm UTC](https://community.auth0.com/t/how-to-access-organization-on-pre-or-post-user-registration-flow-from-an-action/101186/4 "2023-03-09T23:53:31Z")

</div>

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