25012: Updating the email address is unsupported
ERROR
This error occurs when your request tries to change a managed user's primary email in a way that Twilio does not accept. For organization-managed users, the primary email and userName represent the same sign-in identity, and email changes must stay aligned with your organization's verified domains.
- Your SCIM
PUTorPATCHrequest attempts to change the primary email without preserving the required relationship between the primary email anduserName. - The value in
emails[primary=true].valuedoes not matchuserName. Twilio rejects mismatched identity values for managed users. - The new email address uses a domain that your organization has not verified.
- Retry the update by using
PUT /scim/v2/Users/{id}orPATCH /scim/v2/Users/{id}and keepemails[primary=true].valueanduserNameset to the same value. - If you are changing the email in Console instead of through SCIM, update it from User Settings and complete the email verification step. After the change, the new email is also the username used to sign in. (help.twilio.com)
- Verify the target email domain on your organization before you retry the request. Twilio only allows managed-user email addresses from verified domains.
- If you do not need to change the user's sign-in identity, leave the email unchanged and update only supported profile fields such as
displayName,name.givenName,name.familyName,locale,timezone, oractive.