SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

SCIM Provisioning Fails with "Invalid filter: Failed to parse!" Error

Issue

When configuring SCIM provisioning for Single Sign-On (SSO), users encounter a BadRequest (400) error with the message: "Invalid filter: Failed to parse!" during authorization or connection testing.

 

Product

Segment SCIM Provisioning

 

Environment

Segment Console

 

Cause

This error occurs when unsupported matching attributes are configured in the identity provider (IdP) application. Segment's SCIM API only supports filtering on specific attributes: "userName" for users and "displayName" for groups. If other attributes are set as matching properties, the API cannot parse the filter and returns an error.

 

Resolution

To resolve this issue:

  1. In your IdP, review the attribute mappings for the Segment SCIM application.
  2. Ensure that only "userName" is configured as the matching attribute for users.
  3. For groups, only "displayName" should be used as the matching attribute.
  4. Remove matching precedence from any other attributes.
  5. Retest the connection after updating the configuration.

 

Additional Information

If group provisioning is not required, it can be temporarily disabled to test the connection. Always use the official Segment SCIM endpoint.

Have more questions? Submit a request
Powered by Zendesk