Attributes — Search

Attributes

Admins can search the claims of an attribute across all accounts in the tenant, for example to find the account with a given email address or customer number. Searching claims requires an admin scope (https://api.quasr.io/scopes/admin, .../scopes/admin/claims or .../scopes/admin/claims/search), see Authorization.

Exact search

An exact search returns the claims whose value equals the searched value. Since every claim is indexed by a hash of its value, an exact search is fast regardless of the number of claims, and claim values don't need to be decrypted.

  • The comparison is case-insensitive, unless the attribute is case sensitive.
  • For a unique attribute at most 1 claim is returned.

Partial search

A partial search returns the claims whose value contains the searched value, ignoring case. For example example.com finds all email addresses at that domain. To do so every claim of the attribute is decrypted and compared, which takes longer as the number of claims grows.

Parameters

  • Attribute (attribute: string) - The ID of the attribute to search (required).
  • Value (value: string) - The value to search for, at least 2 characters (required).
  • Exact (exact: boolean) - Whether to perform an exact instead of a partial search. Defaults to false.
  • Filter (filter: object) - Additional conditions on the claims, e.g. { "status": { "eq": "ENABLED" } }.
  • Limit (limit: number) - The maximum number of claims to return, 25 by default and at most 100.
  • Next Token (nextToken: string) - The nextToken of the previous response, to get the next page.

The claims are returned with the properties described in View, and can be used to look up the account (account).

Usage

  • Admin UI - In the Admin UI the claims of an attribute can be searched in its Search tab at https://{tenant_id}.admin.quasr.io/attributes/{attribute_id}/claims: click Filter and enter the value, with the Exact switch for an exact search. You can also start from Search on the Dashboard, by attribute.
  • Management API - In the Management API the searchClaims operation can be used, as in following example.
  • Agent API - In the Agent API the search-claims tool can be used. See Agent API.
  1. 1On: only the claim with exactly this value, found fast by a hash of the value
  2. 2Set to 1 for an exact search: no need to look further once the match is found

A partial search for C0010: every customer number containing it

  1. 1Change the value, exact or limit of the search
  2. 2The account the claim belongs to: click it to open the user
query {    searchClaims(attribute: "{attribute_id}", value: "jane@example.com", exact: true) {        items {            id            account            value            status        }        nextToken    }}
2026.11.22 | © Copyright 2026 Quasr BV