# Cannot send Change Password Ticket for new user in Custom Database link to an organization

**URL:** <https://community.auth0.com/t/cannot-send-change-password-ticket-for-new-user-in-custom-database-link-to-an-organization/185597>\
**Category:** Get Help\
**Tags:** tickets, management-api\
**Created:** [April 17, 2025, 12:02am UTC](https://community.auth0.com/t/cannot-send-change-password-ticket-for-new-user-in-custom-database-link-to-an-organization/185597 "2025-04-17T00:02:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeep.lavoie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeep.lavoie/32/72623_2.png) [@jeep.lavoie](https://community.auth0.com/u/jeep.lavoie)\
**Post date:** [April 17, 2025, 12:02am UTC](https://community.auth0.com/t/cannot-send-change-password-ticket-for-new-user-in-custom-database-link-to-an-organization/185597/1 "2025-04-17T00:02:59Z")

</div>

Hi,

We have a Custom Database that Import user form Cognito into Auth0. When we try creating a new user in Auth0 in that Custom Database and sending a Change Password Ticket, we receive this error “The user with id (undefined) is not a member of organization with id (org\_aaaaaaaaaaaa).” The user is a member of that organization, I can login with that user in that organization with the password set in creation steps.

Thanks,

---

<div class="post-metadata">

**Author:** ![jeep.lavoie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeep.lavoie/32/72623_2.png) [@jeep.lavoie](https://community.auth0.com/u/jeep.lavoie)\
**Post date:** [April 17, 2025, 12:24am UTC](https://community.auth0.com/t/cannot-send-change-password-ticket-for-new-user-in-custom-database-link-to-an-organization/185597/2 "2025-04-17T00:24:12Z")

</div>

Doing some test, I find that when I user the connection\_id + email in Change Password Payload give me that error. Using only user\_id work when that is not working. Can we always use the user\_id instead of connection\_id + email or some time the user\_id will not work.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [April 18, 2025, 6:39pm UTC](https://community.auth0.com/t/cannot-send-change-password-ticket-for-new-user-in-custom-database-link-to-an-organization/185597/4 "2025-04-18T18:39:07Z")

</div>

Hi @jeep.lavoie

Welcome to the Auth0 Community!

I am sorry about the late reply to your inquiry.

Where are you trying to generate the password change ticket? Inside the custom database scripts or during an action trigger?

As long as the user is a member of the organization, you should be able to use email + connection\_id whenever you are trying to generate a ticket. It appears that in your situation, the user\_id does not get passed on. Also, the user\_id should be working just as fine, perhaps, for your situation, since you are importing users from Cognito, retrieving the user\_id of the newly created user in Auth0 is more suitable.

Otherwise, if you would try creating the password change ticket during a PostUserRegistration action might accomplish your use case in using the email+connection\_id.

Let me know if you have any other questions!

Kind Regards,  
Nik

---

<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 2, 2025, 6:39pm UTC](https://community.auth0.com/t/cannot-send-change-password-ticket-for-new-user-in-custom-database-link-to-an-organization/185597/5 "2025-05-02T18:39:20Z")

</div>

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