DevTools Logo

SCIM 2.0 Filter Builder

SCIM 2.0 Filter Builder

Compose RFC 7644 filters with operator, grouping and array value-selection support — then copy the encoded /Users?filter= URL.

Runs in your browser
Try an example

Filter expression

1 condition · array depth 0
Group 1 of 1
Condition 1 of 1
Full URL options

Attribute paths are hints, not a restriction — free-text paths and URN extension attributes are accepted. Nothing is stored or sent anywhere.

Filter output

30 chars · 40 encoded
Most core string attributes are caseExact: false — matching is case-insensitive unless the schema says otherwise.
userName eq "jdoe@example.com"

RFC 7644 §3.4.2 grammar · values escaped with " and \\ · spaces encoded as %20.

Grammar notes that trip up SCIM connectors

  • Operators (eq ne co sw ew pr gt ge lt le) and and/or/not are lowercase and case-sensitive; attribute names are case-insensitive, values generally are not.
  • Most core string attributes are caseExact: false, so matching is case-insensitive by default — check the resource schema before assuming otherwise.
  • pr takes no value. not requires parentheses: not (active eq true).
  • Multi-valued attributes use a value path: emails[type eq "work"].value co "@corp.com". RFC 7644 allows one bracket level.
  • Quotes and backslashes inside string values are escaped as " and \\; Unicode is preserved, then percent-encoded in the URL.

The SCIM 2.0 Filter Builder turns a visual expression tree into an RFC 7644 (§3.4.2.2) filter string and a ready-to-paste SCIM query URL. Add condition rows with attribute paths, the lowercase operators eq, ne, co, sw, ew, pr, gt, ge, lt and le, and typed values (string, number, boolean, null, ISO dateTime or reference). Group rows with and/or, negate a whole group with not (…), and select values inside multi-valued attributes with the single bracket level the spec allows — for example emails[type eq "work" and value co "@corp.com"].value. The output panel shows the plain filter, the RFC 3986 percent-encoded form, a configurable full URL with startIndex/count/sortBy/attributes options, and a cURL snippet. Paste mode decodes a rejected filter from a URL or query string and reports grammar errors with character offsets: uppercase operators, pr with a value, missing quotes, unbalanced quotes or parentheses, Unicode attribute names and invalid dateTime values. Attribute hints are scoped to /Users and /Groups and include URN-prefixed enterprise extension paths. Everything runs locally in the browser; filter values are never uploaded or persisted.

Match a user by userName

userName eq "jdoe@example.com" → /Users?filter=userName%20eq%20%22jdoe%40example.com%22

The canonical string is percent-encoded with %20 for spaces and %22 for quotes, exactly as a SCIM collection query expects.

Filter a multi-valued email attribute

emails[type eq "work" and value co "@corp.com"]

Value-selection applies both conditions to the same email entry; add a sub-attribute such as .value when the server expects the selected value path.

Combine a date and a boolean

meta.lastModified gt "2024-01-01T00:00:00Z" and active eq true

dateTime literals are ISO 8601 strings in quotes; booleans are bare true/false literals, never quoted.

Negate a group

userType ne "Employee" and not (emails co "example.com" or emails.value co "example.org")

RFC 7644 requires not to take a parenthesized operand and allows at most one leading not per filter.

Examples

Find a user by userName

Input
userName eq "jdoe@example.com"
Output
/Users?filter=userName%20eq%20%22jdoe%40example.com%22

A simple equality filter, percent-encoded as a single query component with %20 for spaces.

Work email in a corporate domain

Input
emails[type eq "work" and value co "@corp.com"]
Output
emails[type%20eq%20%22work%22%20and%20value%20co%20%22%40corp.com%22]

Both conditions apply to the same email entry; with strict encoding the brackets' inner parentheses (if any) and spaces are encoded consistently.

Last modified and active

Input
meta.lastModified gt "2024-01-01T00:00:00Z" and active eq true
Output
meta.lastModified%20gt%20%222024-01-01T00%3A00%3A00Z%22%20and%20active%20eq%20true

dateTime is quoted, booleans are bare, and colons in the timestamp are percent-encoded in the URL form.

Negated group

Input
not (emails co "example.com" or emails.value co "example.org")
Output
not%20%28emails%20co%20%22example.com%22%20or%20emails.value%20co%20%22example.org%22%29

RFC 7644 requires the parenthesized operand; strict RFC 3986 encoding turns the grouping parentheses into %28 and %29.

About this tool

The SCIM 2.0 Filter Builder composes RFC 7644 filter expressions from condition rows and turns them into a paste-ready `/Users?filter=…` query. Each row carries an attribute path, one of the nine lowercase comparison operators and a typed value; groups add and/or logic and not (…) negation. Multi-valued attributes get a single bracket level, so shapes such as `emails[type eq "work" and value co "@corp.com"].value` are representable without hand-escaping.

The output panel shows four synchronized forms: the plain filter, the percent-encoded component, the complete URL (with an editable tenant base, path prefix, pagination and projection options), and a cURL snippet. Encoding is RFC 3986 strict component encoding by default — spaces become %20, quotes %22, and the `!'()*` characters are encoded too; you can leave grouping parentheses literal if your server or documentation prefers them.

Paste mode works in reverse: drop in a rejected filter, a `?filter=…` query or a full SCIM URL. The tool decodes it, reports grammar errors with character offsets — uppercase operators, `pr` with a value, missing quotes, unbalanced quotes or parentheses, Unicode attribute names and invalid dateTime literals — and lets you load the canonical tree into the builder. Everything is computed in the browser tab; no filter value is uploaded or stored.

What this tool does not do

  • GET-style filters only — SCIM PATCH path expressions are a different grammar and are not supported.
  • One bracket level is enforced; RFC 7644 does not define nested value paths.
  • Constructs such as (+) and valuePath on a literal path from vendor dialects are not validated.
  • Attribute hints are advisory; servers may add custom schemas and override caseExact or value types.
  • The tool does not call a SCIM endpoint, so server-specific dialect quirks cannot be detected locally.
  • Filters are not persisted or shared; closing the tab discards the working expression.

How to use this tool

  1. Add conditions

    Edit the attribute path, pick an operator, enter a value and choose its type. Use the bundled attribute hints or type a URN extension path directly.

  2. Group and negate

    Use the and/or selector on a group, add nested groups for explicit precedence, and tick not (…) to negate the whole group.

  3. Select array values

    Press the braces button on a condition to add emails[type eq "work"].value-style value selection, then set the optional sub-attribute after the bracket.

  4. Copy the query

    Switch between Plain, Encoded, Full URL and cURL output tabs, adjust the tenant base URL and pagination options, then copy or download the result.

  5. Triage a rejection

    Open Validate & triage, paste the filter or the full URL from the error log, and read the offset-coded diagnostics before loading the fixed filter into the builder.

Use cases

Configure an IdP connector

Paste an exact, encoded matching filter into Azure AD or Okta SCIM provisioning settings instead of guessing quoting rules.

Test a SCIM server

Generate canonical RFC 7644 filters for GET /Users and /Groups to exercise server-side grammar handling.

Debug a rejected filter

Decode the URL from an error log and identify the exact offset of an uppercase operator, stray value after pr or missing quote.

Document integration examples

Export plain and encoded forms side by side for onboarding guides and connector tickets.

Operators and value literals

Operator / typeSerialization
eq, ne, co, sw, ewAttribute, lowercase operator, then a quoted string, number, bare boolean or bare null.
gt, ge, lt, leOrdered comparison; dateTime values are quoted ISO 8601 strings such as "2024-01-01T00:00:00Z".
prPresence test — emitted as `attr pr` with no value at all.
and, or, not (…)and binds tighter than or; the serializer adds parentheses only where precedence requires them. not always wraps its operand in parentheses.
[value path]One bracket level per RFC 7644; an optional sub-attribute follows the closing bracket, e.g. emails[type eq "work"].value.
EscapingDouble quotes and backslashes in string values become \" and \\; Unicode characters stay as-is in the filter and are percent-encoded only in the URL.

Attribute names are case-insensitive per SCIM, operators are strictly lowercase, and most core string values are matched case-insensitively (caseExact: false) unless the resource schema says otherwise.

Common mistakes

Mistake:Writing `userName Eq "jdoe"` because SQL operators are case-insensitive.

Fix:Use lowercase eq — RFC 7644 operators and logical keywords are case-sensitive.

Mistake:Adding a value to a presence test, e.g. `title pr "Engineer"`.

Fix:pr only asks whether the attribute has a value; use eq with a string when you need a specific value.

Mistake:Quoting booleans or numbers as strings.

Fix:Emit `active eq true` and `count gt 5` bare; only strings and dateTime literals take double quotes.

Mistake:Expecting `emails[type eq "work"].value` to match different entries for type and value.

Fix:Conditions inside one bracket apply to the same multi-valued entry; split them into separate conditions when that is not intended.

Mistake:Assuming string matching is case-sensitive everywhere.

Fix:Check the attribute's caseExact flag: most core string attributes default to case-insensitive matching in RFC 7643.

Mistake:Pasting a filter URL directly into a server config field that expects only the filter expression.

Fix:Use the Plain output tab for the expression and the Full URL tab for direct HTTP testing.

Frequently asked questions

Are SCIM filter operators case-sensitive?

Yes. RFC 7644 defines eq, ne, co, sw, ew, pr, gt, ge, lt, le plus the lowercase and/or/not keywords; `Eq` or `AND` is not valid grammar. Attribute names, by contrast, are case-insensitive in SCIM, so `userName` and `USERNAME` refer to the same attribute.

How do I filter on email type or another multi-valued attribute?

Use a value path with one bracket level: emails[type eq "work" and value co "@corp.com"]. Both conditions are applied to the same email entry. Add a sub-attribute after the bracket — for example emails[type eq "work"].value — when your connector expects the selected value path.

Why is my filter URL encoded strangely?

A SCIM filter is a single query-string component: encodeURIComponent-style encoding turns spaces into %20, quotes into %22 and @ into %40. Strict RFC 3986 encoding also encodes ! ' ( ) and *, including grouping parentheses. If your vendor docs show literal parentheses, uncheck “Encode ( )” in the tool.

Does pr take a value?

No. `title pr` means “title has a value”; adding a value after it is a grammar error. To require a particular value use `title eq "Engineer"`, and to require an absent value check whether your server supports `not (title pr)`.

Are SCIM string comparisons case-sensitive?

It depends on the attribute's caseExact flag, not on the operator. Most core string attributes such as userName and name.familyName are caseExact: false, so servers match case-insensitively by default; attributes like id and externalId may be case-exact. Check the resource schema or your provider's documentation before assuming case sensitivity.

Can I use this to build PATCH requests?

No. SCIM PATCH uses a separate Operations/path grammar (for example a path of emails[type eq "work"].value). This builder covers RFC 7644 GET filters for /Users and /Groups only.

Is my filter data sent anywhere?

No. Serialization, encoding, validation and URL construction all happen in your browser tab. The tool does not call a SCIM server, does not persist the expression to local storage, and does not log attribute values.

References & standards