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.
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.
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.
nextToken to continue the search. Keep requesting the next page until no nextToken is returned before concluding there are no (more) matches. Use an exact search whenever you know the full value.attribute: string) - The ID of the attribute to search (required).value: string) - The value to search for, at least 2 characters (required).exact: boolean) - Whether to perform an exact instead of a partial search. Defaults to false.filter: object) - Additional conditions on the claims, e.g. { "status": { "eq": "ENABLED" } }.limit: number) - The maximum number of claims to return, 25 by default and at most 100.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).
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.searchClaims operation can be used, as in following example.search-claims tool can be used. See Agent API.A partial search for C0010: every customer number containing it
query { searchClaims(attribute: "{attribute_id}", value: "jane@example.com", exact: true) { items { id account value status } nextToken }}