Skip to content

UpdateUser

Source: src/AWS/IdentityCenter/UpdateUser.ts

Runtime binding for the UpdateUser operation (IAM action identitystore:UpdateUser), scoped to one Instance.

Applies attribute patch operations to a user in the bound instance’s identity store (display name, emails, addresses, …). The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.UpdateUserHttp).

// init — bind the operation to the Identity Center instance
const updateUser = yield* AWS.IdentityCenter.UpdateUser(instance);
// runtime
yield* updateUser({
UserId: userId,
Operations: [
{ AttributePath: "displayName", AttributeValue: "Jane A. Doe" },
],
});