Manually set email for Twitter user


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":"”, “connection”:“twitter”}

“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Cannot update email for this user”,
“errorCode”: “operation_not_supported”

Thanks a lot in advance!

Hi @ruwantha,

This is not allowed on a social connection.

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

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

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