Skip to main content
Version: v0.5

kratos identities get

kratos identities get

Get one or more identities by ID


This command gets all the details about an identity. To get an identity by some selector, e.g. the recovery email address, use the list command in combination with jq.

We have to admit, this is not easy if you don't speak jq fluently. What about opening an issue and telling us what predefined selectors you want to have?

kratos identities get <id-0 [id-1 ...]> [flags]


To get the identities with the recovery email address at the domain "", run:

$ kratos identities get $(kratos identities list --format json | jq -r 'map(select(.recovery_addresses[].value | endswith(""))) | .[].id')


  -h, --help   help for get

Options inherited from parent commands

  -c, --config string     Path to config file. Supports .json, .yaml, .yml, .toml. Default is "$HOME/.kratos.(yaml|yml|toml|json)"
-e, --endpoint string The URL of ORY Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable.
-f, --format string Set the output format. One of table, json, and json-pretty.
-q, --quiet Prints only IDs, one per line. Takes precedence over --format.