Skip to content

GetGroupMembershipId

Source: src/AWS/IdentityCenter/GetGroupMembershipId.ts

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

Resolves the MembershipId linking a user to a group in the bound instance’s identity store. The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.GetGroupMembershipIdHttp).

// init — bind the operation to the Identity Center instance
const getGroupMembershipId = yield* AWS.IdentityCenter.GetGroupMembershipId(instance);
// runtime
const { MembershipId } = yield* getGroupMembershipId({
GroupId: groupId,
MemberId: { UserId: userId },
});