auth0 client-grants search
[Early Access] Search your client grants using Lucene or SCIM filter syntax. Results are eventually consistent; use auth0 client-grants list for up-to-date data. ‘scope’ and ‘allow_all_scopes’ are one pair, and so are ‘client_id’ and ‘default_for’, because the Scopes and Client ID columns read both fields. With ‘–fields’, listing one field of a pair is the same as listing both. With ‘–exclude-fields’, excluding one field of a pair is the same as excluding both. ‘–query’ sends its fields unchanged, so include both fields of a pair there.
Use ‘–schema’ to see available query parameters. Use ‘–query’ to filter results via a JSON object (any API-supported parameter works immediately).
Usage
auth0 client-grants search [flags]
Examples
auth0 client-grants search
auth0 client-grants search --filter 'audience:"https://api.example.com"'
auth0 client-grants search --filter 'client_id:<client-id>' --sort audience
auth0 client-grants search --parser scim --filter 'audience co "example" and organization_id eq "<org-id>"' -s audience:1
auth0 client-grants search --parser scim --filter 'updated_at gt "2026-01-01"' -n 200 --csv
auth0 client-grants search --filter 'default_for:third_party_clients' --fields id,default_for,audience --json
# Discover the query schema
auth0 client-grants search --schema
auth0 client-grants search --schema --json
# JSON query (for agents and automation)
auth0 client-grants search --query '{"q":"subject_type eq \"client\"","parser":"scim","sort":"audience","fields":"client_id,default_for,scope,allow_all_scopes"}'
Flags
--csv Output in csv format.
--exclude-fields Exclude the --fields list from the response instead of returning only those fields.
--fields string Comma-separated list of fields to include in the response, e.g. 'id,client_id,audience'.
--filter string Filter expression, sent as the 'q' query parameter. Uses Lucene syntax, or SCIM syntax with --parser scim. Supported fields: audience,client_id,subject_type,allow_any_organization,organization_id,updated_at,default_for.
Maximum 5 filter operations. Equivalent to --query '{"q":"<expression>"}'.
For example: 'audience:"https://api.example.com"' or, with --parser scim, 'client_id eq "<client-id>" and subject_type eq "client"'.
--json Output in json format.
--json-compact Output in compact json format.
-n, --number int Number of client grants to retrieve. Minimum 1, maximum 1000. (default 100)
--parser string Syntax of --filter: 'lucene' or 'scim'. (default "lucene")
-q, --query string Search with a JSON object of query parameters, sent as-is. Any API-supported parameter works immediately. Run '--schema' to see documented parameters. Returns one page: set "take" (max 100) for the page size, and "from" to the previous response's "next" to fetch the next page.
--schema Print the request payload schema for this command and exit. Use with --json or --json-compact for machine-readable output.
-s, --sort string Field to sort by, in ascending order only. One of: audience,updated_at. The 'field:1' form is also accepted. Defaults to insertion order.
Inherited Flags
--agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable.
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Related Commands
- auth0 client-grants create - Create a new client grant
- auth0 client-grants delete - Delete a client grant
- auth0 client-grants list - List your client grants
- auth0 client-grants organizations - Manage organizations of a client grant
- auth0 client-grants search - Search your client grants (Early Access)
- auth0 client-grants show - Show a client grant
- auth0 client-grants update - Update a client grant