25006: The SCIM schema syntax is invalid
ERROR
Twilio could not process your SCIM request because the schema value is invalid. This error usually occurs when your request body uses an unsupported SCIM schema URN, includes a malformed schema entry, or does not match the expected SCIM format for the requested operation.
- The request includes an invalid
schemasvalue. - The
schemasarray is missing from a SCIM request that requires it. - The request uses a schema URN that does not match the SCIM resource or operation you are calling.
- The request body is malformed JSON, which prevents Twilio from parsing the schema correctly.
- The payload mixes attributes from different SCIM resource types in a way that does not match the declared schema.
- Verify that your request body is valid JSON and that the
schemasfield is formatted correctly. - Confirm that each schema URN in the
schemasarray is complete, correctly spelled, and appropriate for the SCIM resource you are creating or updating. - Make sure the schema you send matches the endpoint and operation you are using.
- Remove unsupported or incorrectly nested attributes from the payload.
- Validate your SCIM request against the SCIM 2.0 format you use in your identity provider before sending it to Twilio.
- If you are provisioning users or groups through Single Sign-On, review your SCIM configuration in your identity provider and update any custom mappings that send invalid schema values.