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)
For each Google auth user, we will automatically create a pwd-auth user by default using management API. So we decide to update First, Last, and Picture to the pwd-auth account 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@swifteam.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"}