Skip to content

ListUsers

Source: src/AWS/Transfer/ListUsers.ts

Runtime binding for transfer:ListUsers.

Lists the users attached to the bound Server — the ServerId is injected from the binding. Pass MaxResults/NextToken to page through large user sets. The building block for self-service user portals over a service-managed server. Provide the implementation with Effect.provide(AWS.Transfer.ListUsersHttp).

// init — bind the operation to the server
const listUsers = yield* AWS.Transfer.ListUsers(server);
// runtime
const { Users } = yield* listUsers();
yield* Effect.log(`users: ${Users.map((u) => u.UserName).join(", ")}`);