Skip to content

List Chronicle identities with Cratis CLI

An identity records event identity metadata in an event store and namespace. The identities list is scoped to the selected event store and namespace, not the entire event store. For application callers, CausedBy can be caller-supplied identity metadata rather than independently authenticated end-user attribution; for authenticated Chronicle user callers, Chronicle derives it from the caller’s identity.

Lists all identities recorded in the specified event store and namespace.

Terminal window
cratis chronicle identities list
Flag Description
-e, --event-store <NAME> Event store to inspect. Defaults to the active context’s event store, then default.
-n, --namespace <NAME> Namespace to inspect. Defaults to the active context’s namespace, then Default.

Use --output plain when scanning identity names. The plain format prints a header line, then one identity per line as three tab-separated columns (Subject, Name and UserName), and is significantly more compact than the JSON output.

Terminal window
cratis chronicle identities list --output plain

To pipe into other commands, use -q (--quiet): it prints only the subject of each identity, one per line.

Terminal window
cratis chronicle identities list -q

List identities using the active context’s event store and namespace, falling back to default and Default:

Terminal window
cratis chronicle identities list

List identities in a specific event store and namespace:

Terminal window
cratis chronicle identities list -e myapp -n tenant-a

Get identity values for scripting:

Terminal window
cratis chronicle identities list -q