# Redirect to organization URL after password change

**URL:** <https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177>\
**Category:** Get Help\
**Tags:** organizations, change-password, redirect\
**Created:** [October 12, 2021, 12:07pm UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177 "2021-10-12T12:07:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladimir.bulatovic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vladimir.bulatovic/32/30224_2.png) [@vladimir.bulatovic](https://community.auth0.com/u/vladimir.bulatovic)\
**Post date:** [October 12, 2021, 12:07pm UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/1 "2021-10-12T12:07:25Z")

</div>

Hi,  
I have a use case where we have enabled organizations feature and each organization has its separate URL, for example, we have [org1.example.com](http://org1.example.com) and [org2.example.com](http://org2.example.com). Because our application is invitation only, after creating a user in let say org2 domain and sending him a change password email via [Authentication API change password endpoint](https://auth0.com/docs/api/authentication#change-password), after the user changes password he gets redirected to the default login page which is [org1.example.com](http://org1.example.com), which is not his organization URL. How can we configure a redirect from the change password email so it redirects to the proper organization domain?

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [October 12, 2021, 1:05pm UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/2 "2021-10-12T13:05:36Z")

</div>

Hi @vladimir.bulatovic

Thanks for contacting Auth0 Community

This doc explains organization invitation flow and also explains the redirect URI handling process [https://auth0.com/docs/organizations/configure/invite-members](https://auth0.com/docs/organizations/configure/invite-members)

Let us know if this helps.

Thanks  
Jeff

---

<div class="post-metadata">

**Author:** ![vladimir.bulatovic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vladimir.bulatovic/32/30224_2.png) [@vladimir.bulatovic](https://community.auth0.com/u/vladimir.bulatovic)\
**Post date:** [October 15, 2021, 10:27am UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/3 "2021-10-15T10:27:14Z")

</div>

Hi @jeff0,  
Thank you for your response. When we add a user to the application, we first create a user, then add that user to the specific organization, and then send him a change password request. The problem is after changing the password user gets redirected to the default URL where we want to redirect him to the URL of that organization where he is added.

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [October 18, 2021, 11:13am UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/4 "2021-10-18T11:13:32Z")

</div>

Hi @vladimir.bulatovic

Apologies for the late reply.

Instead of creating a user manually, you can invite a user directly from an organization via Auth0 Dashboard. This way users can sign up by themselves saving you some time and effort. [Send Organization Membership Invitations](https://auth0.com/docs/organizations/configure/send-membership-invitations)

Thank you  
Jeff

---

<div class="post-metadata">

**Author:** ![vladimir.bulatovic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vladimir.bulatovic/32/30224_2.png) [@vladimir.bulatovic](https://community.auth0.com/u/vladimir.bulatovic)\
**Post date:** [October 19, 2021, 9:21am UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/5 "2021-10-19T09:21:44Z")

</div>

Hi @jeff0,

Thanks for your time to help me with this issue. After sending an organization membership invitation, when the user goes to the organization signup page, he always gets an error because of the pre-user-registration hook. The hook is expecting the user to have user\_metadata assigned to him but only invitation to that user has user\_metadata. My question is can I in the pre-user-registration hook get access to that user\_metadata from the invitation so I can assign it to that user?

Best regards,  
Vladimir

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [October 19, 2021, 9:38am UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/6 "2021-10-19T09:38:04Z")

</div>

Hi @vladimir.bulatovic

Please open a new thread for this and cc me in it.

thanks  
Jeff

---

<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 28, 2021, 12:46pm UTC](https://community.auth0.com/t/redirect-to-organization-url-after-password-change/71177/7 "2021-10-28T12:46:31Z")

</div>


