# "PUT /email is not available for custom connections" Management API Error

**URL:** <https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977>\
**Category:** Get Help\
**Tags:** api\
**Created:** [August 1, 2022, 6:14pm UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977 "2022-08-01T18:14:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blink](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blink/32/39091_2.png) [@blink](https://community.auth0.com/u/blink)\
**Post date:** [August 1, 2022, 6:14pm UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977/1 "2022-08-01T18:14:28Z")

</div>

Hello! I hope everybody is having a good week so far.

My apologies if this has been covered in another location or thread. I looked around but couldn’t seem to find anything on this. If this is a duplicate, please let me know so I can close this thread and add to the conversation in the correct location.

We are successfully using Auth0 login workflows on many of our clients, this question actually stems from issues I’ve run into trying to implement some custom logic on our end leveraging the Auth0 Management API. The request throwing that error is a PATCH request on `api/v2/users/`, where we’re just attempting to update a handful of user values when they’re updated on our platform. The error message itself is fairly straight forward, the issue is that we aren’t even hitting that specific endpoint.

This being said, we _are_ updating user values related to email, such as `email_verified `.

So the question is this - how can I work around this error? Is something misconfigured on our end? It makes sense that `api/v2/users/` hits your `/email` endpoint on its own, but if we’re unable to update these values manually via this API, I’m not sure I understand how they’re intended to be updated since we are using a Custom Database Connection and would prefer not to implement the “standard” Auth0 email verification workflow at this time.

I have looked at the the documentation around the [change email script](https://auth0.com/docs/authenticate/database-connections/custom-db/templates/change-email), the [list of user endpoints](https://auth0.com/docs/api/management/v2#!/Users), and the docs around [Custom Database Connections](https://auth0.com/docs/authenticate/database-connections), and I don’t see anything about not updating email values for a custom connection.

Any details or clarification would be beneficial! Thanks in advance for your time, Auth0 community!

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 2, 2022, 12:21pm UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977/2 "2022-08-02T12:21:03Z")

</div>

Can you double-check that the custom database connection associated with the user being updates defines **both** :

- the `get_user` script
- the `change_email` script.

---

<div class="post-metadata">

**Author:** ![blink](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blink/32/39091_2.png) [@blink](https://community.auth0.com/u/blink)\
**Post date:** [August 2, 2022, 10:46pm UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977/3 "2022-08-02T22:46:49Z")

</div>

@jmangelo thanks for the quick response!  
The get\_user script was not implemented yet. I’ve been trying to get working. I will update here once the script is implemented and let you know! Thanks!

---

<div class="post-metadata">

**Author:** ![blink](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blink/32/39091_2.png) [@blink](https://community.auth0.com/u/blink)\
**Post date:** [August 2, 2022, 11:20pm UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977/4 "2022-08-02T23:20:10Z")

</div>

@jmangelo Thank you for your response here, the `get_user` script ended up being the issue! I am now successfully calling `api/v2/users/`.

Greatly appreciate your response! I’m glad it was a relatively simple solution.

---

<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:** [August 3, 2022, 11:50am UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977/5 "2022-08-03T11:50:24Z")

</div>

We are here for you @blink!

---

<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:** [November 4, 2022, 1:49pm UTC](https://community.auth0.com/t/put-email-is-not-available-for-custom-connections-management-api-error/87977/6 "2022-11-04T13:49:30Z")

</div>


