This account has both a Google auth connection and a Pwd Auth database after linking them together. When updating given_name and familly_name, we received an error. How can update the name to the database connection instead?
The following user attributes cannot be updated: name. The connection (google-oauth2) must either be a database connection (using the Auth0 store)
[
{
"provider": "google-oauth2",
"user_id": "107469007964388287664",
"connection": "google-oauth2",
"isSocial": true
},
{
"profileData": {
"email": "account@company.com",
"email_verified": true,
"last_password_reset": "2022-10-19T01:02:34.061Z"
},
"connection": "Username-Password-Authentication",
"provider": "auth0",
"user_id": "6348de7a58c1292a55d6fc59",
"isSocial": false
}
]
We then use the password connection to update First, Last, and Picture instead. But we’re getting another error: The specified connection (Username-Password-Authentication) belongs to a secondary identity.
params:
"{\"connection\":\"Username-Password-Authentication\",\"picture\":\"https://lh3.googleusercontent.com/a/ALm5wu39YIpDYITxBadZzziOCGR4IdzYsM4joFJ0zBmDYw=s96-c\",\"email\":\"xxx@company.com\",\"user_metadata\":{\"mobile_phone\":\"+1xxxxxxxx\"}}"
response:
{"statusCode":400,"error":"Bad Request","message":"The following user attributes cannot be updated: picture. The specified connection (Username-Password-Authentication) belongs to a secondary identity.","errorCode":"operation_not_supported"}