Skip to main content
Version: Next

CatalogIdentityClient.findUser()

Home > @backstage/plugin-auth-backend > CatalogIdentityClient > findUser

Looks up a single user using a query.

Throws a NotFoundError or ConflictError if 0 or multiple users are found.

Signature:

findUser(query: {
annotations: Record<string, string>;
}): Promise<UserEntity>;

Parameters

ParameterTypeDescription
query{ annotations: Record<string, string>; }

Returns:

Promise<UserEntity>