List Identities
GET {{baseUrl}}/admin/identities?per_page=250&page=<long>&page_size=250&page_token=1&consistency=eventual&ids=<string>&ids=<string>&credentials_identifier=<string>&preview_credentials_identifier_similar=<string>&include_credential=<string>&include_credential=<string>
Lists all identities in the system.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
per_page | number | Deprecated Items per Page |
DEPRECATED: Please use page_token
instead. This parameter will be removed in the future.
This is the number of items per page. |
| page
| string | | Deprecated Pagination Page
DEPRECATED: Please use page_token
instead. This parameter will be removed in the future.
This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list.
For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist.
The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the
Link
header. |
| page_size
| number | | Page Size
This is the number of items per page to return. For details on pagination please head over to the
pagination documentation. |
| page_token
| number | | Next Page Token
The next page token. For details on pagination please head over to the
pagination documentation. |
| consistency
| string | | Read Consistency Level (preview)
The read consistency level determines the consistency guarantee for reads:
strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old.
The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with
ory patch project --replace '/previews/default_read_consistency_level="strong"'
.
Setting the default consistency level to eventual
may cause regressions in the future as we add consistency
controls to more APIs. Currently, the following APIs will be affected by this setting:
GET /admin/identities
This feature is in preview and only available in Ory Network.
ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level.
strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level.
eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. |
| ids
| string | | List of ids used to filter identities.
If this list is empty, then no filter will be applied. |
| ids
| string | | List of ids used to filter identities.
If this list is empty, then no filter will be applied. |
| credentials_identifier
| string | | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match.
Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. |
| preview_credentials_identifier_similar
| string | | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior.
THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH.
CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search.
Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. |
| include_credential
| string | | Include Credentials in Response
Include any credential, for example password
or oidc
, in the response. When set to oidc
, This will return
the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. |
| include_credential
| string | | Include Credentials in Response
Include any credential, for example password
or oidc
, in the response. When set to oidc
, This will return
the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
[{"id":"\u003cuuid\u003e","schema_id":"\u003cstring\u003e","schema_url":"\u003cstring\u003e","traits":{"description":"Traits represent an identity's traits. The identity is able to create, modify, and delete traits\nin a self-service manner. The input will always be validated against the JSON Schema defined\nin `schema_url`."},"created_at":"\u003cdateTime\u003e","credentials":{"site4c":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"totp","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"},"voluptate_3":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"link_recovery","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"},"estc":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"profile","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"},"consequat5b":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"profile","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"}},"metadata_admin":{"description":"NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-","nullable":true},"metadata_public":{"description":"NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-","nullable":true},"organization_id":"\u003cstring\u003e","recovery_addresses":[{"id":"\u003cuuid\u003e","value":"\u003cstring\u003e","via":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e"},{"id":"\u003cuuid\u003e","value":"\u003cstring\u003e","via":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e"}],"state":"inactive","state_changed_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e","verifiable_addresses":[{"value":"\u003cstring\u003e","verified":"\u003cboolean\u003e","via":"sms","status":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","id":"\u003cuuid\u003e","updated_at":"\u003cdateTime\u003e","verified_at":"\u003cdateTime\u003e"},{"value":"\u003cstring\u003e","verified":"\u003cboolean\u003e","via":"email","status":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","id":"\u003cuuid\u003e","updated_at":"\u003cdateTime\u003e","verified_at":"\u003cdateTime\u003e"}]},{"id":"\u003cuuid\u003e","schema_id":"\u003cstring\u003e","schema_url":"\u003cstring\u003e","traits":{"description":"Traits represent an identity's traits. The identity is able to create, modify, and delete traits\nin a self-service manner. The input will always be validated against the JSON Schema defined\nin `schema_url`."},"created_at":"\u003cdateTime\u003e","credentials":{"adipisicing_4":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"link_recovery","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"},"deseruntbc9":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"code_recovery","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"},"dolor_17c":{"config":{},"created_at":"\u003cdateTime\u003e","identifiers":["\u003cstring\u003e","\u003cstring\u003e"],"type":"totp","updated_at":"\u003cdateTime\u003e","version":"\u003clong\u003e"}},"metadata_admin":{"description":"NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-","nullable":true},"metadata_public":{"description":"NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-","nullable":true},"organization_id":"\u003cstring\u003e","recovery_addresses":[{"id":"\u003cuuid\u003e","value":"\u003cstring\u003e","via":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e"},{"id":"\u003cuuid\u003e","value":"\u003cstring\u003e","via":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e"}],"state":"inactive","state_changed_at":"\u003cdateTime\u003e","updated_at":"\u003cdateTime\u003e","verifiable_addresses":[{"value":"\u003cstring\u003e","verified":"\u003cboolean\u003e","via":"email","status":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","id":"\u003cuuid\u003e","updated_at":"\u003cdateTime\u003e","verified_at":"\u003cdateTime\u003e"},{"value":"\u003cstring\u003e","verified":"\u003cboolean\u003e","via":"email","status":"\u003cstring\u003e","created_at":"\u003cdateTime\u003e","id":"\u003cuuid\u003e","updated_at":"\u003cdateTime\u003e","verified_at":"\u003cdateTime\u003e"}]}]