Skip to content

ListGroupMembershipsForMember

Source: src/AWS/IdentityCenter/ListGroupMembershipsForMember.ts

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

Lists every group a user belongs to in the bound instance’s identity store, one page per call (NextToken paginates). The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.ListGroupMembershipsForMemberHttp).

// init — bind the operation to the Identity Center instance
const listGroupMembershipsForMember = yield* AWS.IdentityCenter.ListGroupMembershipsForMember(instance);
// runtime
const { GroupMemberships } = yield* listGroupMembershipsForMember({
MemberId: { UserId: userId },
});