Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to get a list of members in an Identity Store Group.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ssoadmin.getInstances({});
const exampleGetGroup = example.then(example => aws.identitystore.getGroup({
identityStoreId: example.identityStoreIds?.[0],
alternateIdentifier: {
uniqueAttribute: {
attributePath: "DisplayName",
attributeValue: "ExampleGroup",
},
},
}));
const exampleGetGroupMemberships = Promise.all([example, exampleGetGroup]).then(([example, exampleGetGroup]) => aws.identitystore.getGroupMemberships({
identityStoreId: example.identityStoreIds?.[0],
groupId: exampleGetGroup.groupId,
}));
import pulumi
import pulumi_aws as aws
example = aws.ssoadmin.get_instances()
example_get_group = aws.identitystore.get_group(identity_store_id=example.identity_store_ids[0],
alternate_identifier={
"unique_attribute": {
"attribute_path": "DisplayName",
"attribute_value": "ExampleGroup",
},
})
example_get_group_memberships = aws.identitystore.get_group_memberships(identity_store_id=example.identity_store_ids[0],
group_id=example_get_group.group_id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/identitystore"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssoadmin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ssoadmin.GetInstances(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
exampleGetGroup, err := identitystore.LookupGroup(ctx, &identitystore.LookupGroupArgs{
IdentityStoreId: example.IdentityStoreIds[0],
AlternateIdentifier: identitystore.GetGroupAlternateIdentifier{
UniqueAttribute: identitystore.GetGroupAlternateIdentifierUniqueAttribute{
AttributePath: "DisplayName",
AttributeValue: "ExampleGroup",
},
},
}, nil)
if err != nil {
return err
}
_, err = identitystore.GetGroupMemberships(ctx, &identitystore.GetGroupMembershipsArgs{
IdentityStoreId: example.IdentityStoreIds[0],
GroupId: exampleGetGroup.GroupId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.SsoAdmin.GetInstances.Invoke();
var exampleGetGroup = Aws.IdentityStore.GetGroup.Invoke(new()
{
IdentityStoreId = example.Apply(getInstancesResult => getInstancesResult.IdentityStoreIds[0]),
AlternateIdentifier = new Aws.IdentityStore.Inputs.GetGroupAlternateIdentifierInputArgs
{
UniqueAttribute = new Aws.IdentityStore.Inputs.GetGroupAlternateIdentifierUniqueAttributeInputArgs
{
AttributePath = "DisplayName",
AttributeValue = "ExampleGroup",
},
},
});
var exampleGetGroupMemberships = Aws.IdentityStore.GetGroupMemberships.Invoke(new()
{
IdentityStoreId = example.Apply(getInstancesResult => getInstancesResult.IdentityStoreIds[0]),
GroupId = exampleGetGroup.Apply(getGroupResult => getGroupResult.GroupId),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.identitystore.IdentitystoreFunctions;
import com.pulumi.aws.identitystore.inputs.GetGroupArgs;
import com.pulumi.aws.identitystore.inputs.GetGroupAlternateIdentifierArgs;
import com.pulumi.aws.identitystore.inputs.GetGroupAlternateIdentifierUniqueAttributeArgs;
import com.pulumi.aws.identitystore.inputs.GetGroupMembershipsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = SsoadminFunctions.getInstances(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
final var exampleGetGroup = IdentitystoreFunctions.getGroup(GetGroupArgs.builder()
.identityStoreId(example.identityStoreIds()[0])
.alternateIdentifier(GetGroupAlternateIdentifierArgs.builder()
.uniqueAttribute(GetGroupAlternateIdentifierUniqueAttributeArgs.builder()
.attributePath("DisplayName")
.attributeValue("ExampleGroup")
.build())
.build())
.build());
final var exampleGetGroupMemberships = IdentitystoreFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()
.identityStoreId(example.identityStoreIds()[0])
.groupId(exampleGetGroup.groupId())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:ssoadmin:getInstances
arguments: {}
exampleGetGroup:
fn::invoke:
function: aws:identitystore:getGroup
arguments:
identityStoreId: ${example.identityStoreIds[0]}
alternateIdentifier:
uniqueAttribute:
attributePath: DisplayName
attributeValue: ExampleGroup
exampleGetGroupMemberships:
fn::invoke:
function: aws:identitystore:getGroupMemberships
arguments:
identityStoreId: ${example.identityStoreIds[0]}
groupId: ${exampleGetGroup.groupId}
Using getGroupMemberships
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGroupMemberships(args: GetGroupMembershipsArgs, opts?: InvokeOptions): Promise<GetGroupMembershipsResult>
function getGroupMembershipsOutput(args: GetGroupMembershipsOutputArgs, opts?: InvokeOptions): Output<GetGroupMembershipsResult>def get_group_memberships(group_id: Optional[str] = None,
identity_store_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupMembershipsResult
def get_group_memberships_output(group_id: Optional[pulumi.Input[str]] = None,
identity_store_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupMembershipsResult]func GetGroupMemberships(ctx *Context, args *GetGroupMembershipsArgs, opts ...InvokeOption) (*GetGroupMembershipsResult, error)
func GetGroupMembershipsOutput(ctx *Context, args *GetGroupMembershipsOutputArgs, opts ...InvokeOption) GetGroupMembershipsResultOutput> Note: This function is named GetGroupMemberships in the Go SDK.
public static class GetGroupMemberships
{
public static Task<GetGroupMembershipsResult> InvokeAsync(GetGroupMembershipsArgs args, InvokeOptions? opts = null)
public static Output<GetGroupMembershipsResult> Invoke(GetGroupMembershipsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupMembershipsResult> getGroupMemberships(GetGroupMembershipsArgs args, InvokeOptions options)
public static Output<GetGroupMembershipsResult> getGroupMemberships(GetGroupMembershipsArgs args, InvokeOptions options)
fn::invoke:
function: aws:identitystore/getGroupMemberships:getGroupMemberships
arguments:
# arguments dictionaryThe following arguments are supported:
- Group
Id string - The identifier for a group in the Identity Store.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- Group
Id string - The identifier for a group in the Identity Store.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- group
Id String - The identifier for a group in the Identity Store.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
- group
Id string - The identifier for a group in the Identity Store.
- identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- group_
id str - The identifier for a group in the Identity Store.
- identity_
store_ strid - Identity Store ID associated with the Single Sign-On Instance.
- group
Id String - The identifier for a group in the Identity Store.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
getGroupMemberships Result
The following output properties are available:
- Group
Id string - Group identifier.
- Group
Memberships List<GetGroup Memberships Group Membership> - A list of group membership objects. See
group_membershipsbelow. - Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Store stringId - Identity store identifier.
- Group
Id string - Group identifier.
- Group
Memberships []GetGroup Memberships Group Membership - A list of group membership objects. See
group_membershipsbelow. - Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Store stringId - Identity store identifier.
- group
Id String - Group identifier.
- group
Memberships List<GetGroup Memberships Group Membership> - A list of group membership objects. See
group_membershipsbelow. - id String
- The provider-assigned unique ID for this managed resource.
- identity
Store StringId - Identity store identifier.
- group
Id string - Group identifier.
- group
Memberships GetGroup Memberships Group Membership[] - A list of group membership objects. See
group_membershipsbelow. - id string
- The provider-assigned unique ID for this managed resource.
- identity
Store stringId - Identity store identifier.
- group_
id str - Group identifier.
- group_
memberships Sequence[GetGroup Memberships Group Membership] - A list of group membership objects. See
group_membershipsbelow. - id str
- The provider-assigned unique ID for this managed resource.
- identity_
store_ strid - Identity store identifier.
- group
Id String - Group identifier.
- group
Memberships List<Property Map> - A list of group membership objects. See
group_membershipsbelow. - id String
- The provider-assigned unique ID for this managed resource.
- identity
Store StringId - Identity store identifier.
Supporting Types
GetGroupMembershipsGroupMembership
- Group
Id string - The identifier for a group in the Identity Store.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- Member
Id GetGroup Memberships Group Membership Member Id - An object containing the identifier of a group member. See
member_idbelow. - Membership
Id string
- Group
Id string - The identifier for a group in the Identity Store.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- Member
Id GetGroup Memberships Group Membership Member Id - An object containing the identifier of a group member. See
member_idbelow. - Membership
Id string
- group
Id String - The identifier for a group in the Identity Store.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
- member
Id GetGroup Memberships Group Membership Member Id - An object containing the identifier of a group member. See
member_idbelow. - membership
Id String
- group
Id string - The identifier for a group in the Identity Store.
- identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- member
Id GetGroup Memberships Group Membership Member Id - An object containing the identifier of a group member. See
member_idbelow. - membership
Id string
- group_
id str - The identifier for a group in the Identity Store.
- identity_
store_ strid - Identity Store ID associated with the Single Sign-On Instance.
- member_
id GetGroup Memberships Group Membership Member Id - An object containing the identifier of a group member. See
member_idbelow. - membership_
id str
- group
Id String - The identifier for a group in the Identity Store.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
- member
Id Property Map - An object containing the identifier of a group member. See
member_idbelow. - membership
Id String
GetGroupMembershipsGroupMembershipMemberId
- User
Id string - User identifier of the group member.
- User
Id string - User identifier of the group member.
- user
Id String - User identifier of the group member.
- user
Id string - User identifier of the group member.
- user_
id str - User identifier of the group member.
- user
Id String - User identifier of the group member.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
