Skip to main content

ory identities get

ory identities get

Get one or more identities by ID

Synopsis

This command gets all the details about an identity. To get an identity by some selector, such as 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? https://github.com/ory/kratos/issues/new/choose

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

Examples

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

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

Options

  -f, --format string   Set the output format. One of table, json, and json-pretty. (default "default")
-h, --help help for get
-q, --quiet Be quiet with output printing.

Options inherited from parent commands

      --api-endpoint string           Use a different endpoint. (default "https://oryapis.com")
--console-api-endpoint string Use a different URL. (default "https://api.console.ory.sh")

SEE ALSO