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:
- In your IdP, review the attribute mappings for the Segment SCIM application.
- Ensure that only "userName" is configured as the matching attribute for users.
- For groups, only "displayName" should be used as the matching attribute.
- Remove matching precedence from any other attributes.
- 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.