<@U04UQ68083H> how to search based on `credentials...
# ory-copilot
n
@chilly-king-10285 how to search based on
credentials_identifier
on get admin identities?
b
A message from kapa.ai
To search for identities based on
credentials_identifier
when using the admin API to get identities, you can use the
credentials_identifier
query parameter. This parameter allows you to look up identities using an exact match of the identifier (username or email) of the credentials. Here's how you can use it:
Copy code
GET /admin/identities?credentials_identifier=example@email.com
This query will return identities that have the specified identifier (in this case, "example@email.com") associated with their credentials. It's important to note that: 1. Only one of
credentials_identifier
or
credentials_identifier_similar
can be used at a time. 2. This performs an exact match, so the identifier must match precisely. For more details, you can refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api#tag/identity/operation/listIdentities), which provides comprehensive information about the available query parameters for the
listIdentities
endpoint.