<@U04UQ68083H> Is it possible to query identities ...
# ory-copilot
b
@chilly-king-10285 Is it possible to query identities and filter them by
organization_id
?
c
A message from kapa.ai
No, based on the provided knowledge sources, it is not possible to directly query identities and filter them by
organization_id
. The
listIdentities
method in the Ory API does not include
organization_id
as a query parameter. The available query parameters for this method are
per_page
,
page
,
page_size
,
page_token
,
consistency
,
ids
,
credentials_identifier
,
preview_credentials_identifier_similar
, and
include_credential
. However, the
organization_id
is included in the response of the
listIdentitySessions
and
listMySessions
methods. This means that you can retrieve the sessions associated with an identity and then filter the results based on the
organization_id
on your end. For more details, please refer to the [Ory API documentation](https://www.ory.sh/docs/reference/api).