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.
cratis chronicle identities listOptions
Section titled “Options”| 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. |
Output tip
Section titled “Output tip”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.
cratis chronicle identities list --output plainTo pipe into other commands, use -q (--quiet): it prints only the subject of each identity, one per line.
cratis chronicle identities list -qExamples
Section titled “Examples”List identities using the active context’s event store and namespace, falling back to default and Default:
cratis chronicle identities listList identities in a specific event store and namespace:
cratis chronicle identities list -e myapp -n tenant-aGet identity values for scripting:
cratis chronicle identities list -q