# Manually set email for Twitter user

**URL:** <https://community.auth0.com/t/manually-set-email-for-twitter-user/92768>\
**Category:** Get Help\
**Created:** [October 20, 2022, 2:33am UTC](https://community.auth0.com/t/manually-set-email-for-twitter-user/92768 "2022-10-20T02:33:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruwantha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ruwantha/32/36107_2.png) [@ruwantha](https://community.auth0.com/u/ruwantha)\
**Post date:** [October 20, 2022, 2:33am UTC](https://community.auth0.com/t/manually-set-email-for-twitter-user/92768/1 "2022-10-20T02:33:15Z")

</div>

Hello,

I am trying to set the email property of an existing auth0 user(who doesn’t have email property at all).

Purpose is to add or set email property for a twitter user signed up using the mobile number.

I was able to update email for non social connection user using the same request but not for social users.

Request :PATCH  
url :/api/v2/users/{id}  
body :{“[email":"testing@testing.com](mailto:email%22:%22testing@testing.com)”, “connection”:“twitter”}

Response:  
{  
“statusCode”: 400,  
“error”: “Bad Request”,  
“message”: “Cannot update email for this user”,  
“errorCode”: “operation\_not\_supported”  
}

Thanks a lot in advance!

---

<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:** [October 27, 2022, 10:52pm UTC](https://community.auth0.com/t/manually-set-email-for-twitter-user/92768/3 "2022-10-27T22:52:45Z")

</div>

Hi @ruwantha,

This is not allowed on a social connection.

You can retrieve emails for twitter users via the method described here:

[https://marketplace.auth0.com/integrations/twitter-social-connection](https://marketplace.auth0.com/integrations/twitter-social-connection)

Otherwise, you may want to store data in the user’s metadata.

---

<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:** [November 10, 2022, 10:53pm UTC](https://community.auth0.com/t/manually-set-email-for-twitter-user/92768/4 "2022-11-10T22:53:26Z")

</div>

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