Skip to content

ListGroups

Source: src/AWS/IdentityCenter/ListGroups.ts

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

Lists the groups 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.ListGroupsHttp).

// init — bind the operation to the Identity Center instance
const listGroups = yield* AWS.IdentityCenter.ListGroups(instance);
// runtime
const { Groups } = yield* listGroups({ MaxResults: 50 });
console.log(Groups?.map((group) => group.DisplayName));