Skip to content

ListUsers

Source: src/AWS/IdentityCenter/ListUsers.ts

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

Lists the users in the bound instance’s identity store, one page per call (NextToken paginates); pass Filters to narrow by attribute. The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.ListUsersHttp).

// init — bind the operation to the Identity Center instance
const listUsers = yield* AWS.IdentityCenter.ListUsers(instance);
// runtime
const { Users, NextToken } = yield* listUsers({ MaxResults: 50 });
console.log(Users?.map((user) => user.UserName));