1. Packages
  2. Packages
  3. Okta Provider
  4. API Docs
  5. getIdentitySourceGroupMemberships
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi
okta logo
Viewing docs for Okta v6.9.0
published on Wednesday, Jul 1, 2026 by Pulumi

    Retrieves the list of member external IDs for a group in an Okta Identity Source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = okta.getIdentitySourceGroupMemberships({
        identitySourceId: "<identity-source-id>",
        groupExternalId: "GROUPEXT123456EXAMPLE",
    });
    export const memberIds = example.then(example => example.memberExternalIds);
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.get_identity_source_group_memberships(identity_source_id="<identity-source-id>",
        group_external_id="GROUPEXT123456EXAMPLE")
    pulumi.export("memberIds", example.member_external_ids)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := okta.GetIdentitySourceGroupMemberships(ctx, &okta.GetIdentitySourceGroupMembershipsArgs{
    			IdentitySourceId: "<identity-source-id>",
    			GroupExternalId:  "GROUPEXT123456EXAMPLE",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("memberIds", example.MemberExternalIds)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Okta.GetIdentitySourceGroupMemberships.Invoke(new()
        {
            IdentitySourceId = "<identity-source-id>",
            GroupExternalId = "GROUPEXT123456EXAMPLE",
        });
    
        return new Dictionary<string, object?>
        {
            ["memberIds"] = example.Apply(getIdentitySourceGroupMembershipsResult => getIdentitySourceGroupMembershipsResult.MemberExternalIds),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetIdentitySourceGroupMembershipsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = OktaFunctions.getIdentitySourceGroupMemberships(GetIdentitySourceGroupMembershipsArgs.builder()
                .identitySourceId("<identity-source-id>")
                .groupExternalId("GROUPEXT123456EXAMPLE")
                .build());
    
            ctx.export("memberIds", example.memberExternalIds());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: okta:getIdentitySourceGroupMemberships
          arguments:
            identitySourceId: <identity-source-id>
            groupExternalId: GROUPEXT123456EXAMPLE
    outputs:
      memberIds: ${example.memberExternalIds}
    
    pulumi {
      required_providers {
        okta = {
          source = "pulumi/okta"
        }
      }
    }
    
    data "okta_getidentitysourcegroupmemberships" "example" {
      identity_source_id = "<identity-source-id>"
      group_external_id  = "GROUPEXT123456EXAMPLE"
    }
    
    output "memberIds" {
      value = data.okta_getidentitysourcegroupmemberships.example.member_external_ids
    }
    

    Using getIdentitySourceGroupMemberships

    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 getIdentitySourceGroupMemberships(args: GetIdentitySourceGroupMembershipsArgs, opts?: InvokeOptions): Promise<GetIdentitySourceGroupMembershipsResult>
    function getIdentitySourceGroupMembershipsOutput(args: GetIdentitySourceGroupMembershipsOutputArgs, opts?: InvokeOptions): Output<GetIdentitySourceGroupMembershipsResult>
    def get_identity_source_group_memberships(group_external_id: Optional[str] = None,
                                              identity_source_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetIdentitySourceGroupMembershipsResult
    def get_identity_source_group_memberships_output(group_external_id: pulumi.Input[Optional[str]] = None,
                                              identity_source_id: pulumi.Input[Optional[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetIdentitySourceGroupMembershipsResult]
    func GetIdentitySourceGroupMemberships(ctx *Context, args *GetIdentitySourceGroupMembershipsArgs, opts ...InvokeOption) (*GetIdentitySourceGroupMembershipsResult, error)
    func GetIdentitySourceGroupMembershipsOutput(ctx *Context, args *GetIdentitySourceGroupMembershipsOutputArgs, opts ...InvokeOption) GetIdentitySourceGroupMembershipsResultOutput

    > Note: This function is named GetIdentitySourceGroupMemberships in the Go SDK.

    public static class GetIdentitySourceGroupMemberships 
    {
        public static Task<GetIdentitySourceGroupMembershipsResult> InvokeAsync(GetIdentitySourceGroupMembershipsArgs args, InvokeOptions? opts = null)
        public static Output<GetIdentitySourceGroupMembershipsResult> Invoke(GetIdentitySourceGroupMembershipsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIdentitySourceGroupMembershipsResult> getIdentitySourceGroupMemberships(GetIdentitySourceGroupMembershipsArgs args, InvokeOptions options)
    public static Output<GetIdentitySourceGroupMembershipsResult> getIdentitySourceGroupMemberships(GetIdentitySourceGroupMembershipsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getIdentitySourceGroupMemberships:getIdentitySourceGroupMemberships
      arguments:
        # arguments dictionary
    data "okta_get_identity_source_group_memberships" "name" {
        # arguments
    }

    The following arguments are supported:

    GroupExternalId string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    IdentitySourceId string
    ID of the identity source.
    GroupExternalId string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    IdentitySourceId string
    ID of the identity source.
    group_external_id string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    identity_source_id string
    ID of the identity source.
    groupExternalId String
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    identitySourceId String
    ID of the identity source.
    groupExternalId string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    identitySourceId string
    ID of the identity source.
    group_external_id str
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    identity_source_id str
    ID of the identity source.
    groupExternalId String
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    identitySourceId String
    ID of the identity source.

    getIdentitySourceGroupMemberships Result

    The following output properties are available:

    GroupExternalId string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    Id string
    Composite identifier ({identity_source_id}/{group_external_id}).
    IdentitySourceId string
    ID of the identity source.
    MemberExternalIds List<string>
    External IDs of members belonging to the group in the identity source.
    GroupExternalId string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    Id string
    Composite identifier ({identity_source_id}/{group_external_id}).
    IdentitySourceId string
    ID of the identity source.
    MemberExternalIds []string
    External IDs of members belonging to the group in the identity source.
    group_external_id string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    id string
    Composite identifier ({identity_source_id}/{group_external_id}).
    identity_source_id string
    ID of the identity source.
    member_external_ids list(string)
    External IDs of members belonging to the group in the identity source.
    groupExternalId String
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    id String
    Composite identifier ({identity_source_id}/{group_external_id}).
    identitySourceId String
    ID of the identity source.
    memberExternalIds List<String>
    External IDs of members belonging to the group in the identity source.
    groupExternalId string
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    id string
    Composite identifier ({identity_source_id}/{group_external_id}).
    identitySourceId string
    ID of the identity source.
    memberExternalIds string[]
    External IDs of members belonging to the group in the identity source.
    group_external_id str
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    id str
    Composite identifier ({identity_source_id}/{group_external_id}).
    identity_source_id str
    ID of the identity source.
    member_external_ids Sequence[str]
    External IDs of members belonging to the group in the identity source.
    groupExternalId String
    The external ID (or Okta-assigned ID) of the group whose memberships to retrieve.
    id String
    Composite identifier ({identity_source_id}/{group_external_id}).
    identitySourceId String
    ID of the identity source.
    memberExternalIds List<String>
    External IDs of members belonging to the group in the identity source.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Viewing docs for Okta v6.9.0
    published on Wednesday, Jul 1, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial