Manually set email for Twitter user

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

Response:
{
“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:

https://marketplace.auth0.com/integrations/twitter-social-connection

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.