Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / clients / findUserByLogin

Function: findUserByLogin()

findUserByLogin(client, login, expand?): Promise<{ } | undefined>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:406

Helper to find a user by login (email) from a list of users. This is a convenience function since the API doesn't have a direct search by login endpoint.

Parameters

client

AccountManagerUsersClient

Account Manager Users client

login

string

User login (email)

expand?

("roles" | "organizations")[]

Returns

Promise<{ } | undefined>

User if found, undefined otherwise

Throws

Error if request fails

Released under the Apache-2.0 License.