GetUserId
Source:
src/AWS/IdentityCenter/GetUserId.ts
Runtime binding for the GetUserId operation (IAM action
identitystore:GetUserId), scoped to one Instance.
Resolves a user’s UserId from a unique attribute (e.g. the user name) — the canonical login-to-id lookup for apps federated through Identity Center. The instance’s
IdentityStoreId is injected from the binding. Provide the implementation with
Effect.provide(AWS.IdentityCenter.GetUserIdHttp).
Looking Up Users
Section titled “Looking Up Users”// init — bind the operation to the Identity Center instanceconst getUserId = yield* AWS.IdentityCenter.GetUserId(instance);
// runtimeconst { UserId } = yield* getUserId({ AlternateIdentifier: { UniqueAttribute: { AttributePath: "userName", AttributeValue: "jdoe", }, },});