1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. getGroupMembership
Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi

azuredevops.getGroupMembership

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi

    Use this data source to access information about an existing Group Memberships within Azure DevOps

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = azuredevops.getGroupMembership({
        groupDescriptor: "groupdescroptpr",
    });
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.get_group_membership(group_descriptor="groupdescroptpr")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azuredevops.LookupGroupMembership(ctx, &azuredevops.LookupGroupMembershipArgs{
    			GroupDescriptor: "groupdescroptpr",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AzureDevOps.GetGroupMembership.Invoke(new()
        {
            GroupDescriptor = "groupdescroptpr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuredevops.AzuredevopsFunctions;
    import com.pulumi.azuredevops.inputs.GetGroupMembershipArgs;
    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 = AzuredevopsFunctions.getGroupMembership(GetGroupMembershipArgs.builder()
                .groupDescriptor("groupdescroptpr")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azuredevops:getGroupMembership
          arguments:
            groupDescriptor: groupdescroptpr
    

    Using getGroupMembership

    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 getGroupMembership(args: GetGroupMembershipArgs, opts?: InvokeOptions): Promise<GetGroupMembershipResult>
    function getGroupMembershipOutput(args: GetGroupMembershipOutputArgs, opts?: InvokeOptions): Output<GetGroupMembershipResult>
    def get_group_membership(group_descriptor: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetGroupMembershipResult
    def get_group_membership_output(group_descriptor: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetGroupMembershipResult]
    func LookupGroupMembership(ctx *Context, args *LookupGroupMembershipArgs, opts ...InvokeOption) (*LookupGroupMembershipResult, error)
    func LookupGroupMembershipOutput(ctx *Context, args *LookupGroupMembershipOutputArgs, opts ...InvokeOption) LookupGroupMembershipResultOutput

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

    public static class GetGroupMembership 
    {
        public static Task<GetGroupMembershipResult> InvokeAsync(GetGroupMembershipArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupMembershipResult> Invoke(GetGroupMembershipInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGroupMembershipResult> getGroupMembership(GetGroupMembershipArgs args, InvokeOptions options)
    public static Output<GetGroupMembershipResult> getGroupMembership(GetGroupMembershipArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azuredevops:index/getGroupMembership:getGroupMembership
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GroupDescriptor string
    The descriptor of the group.
    GroupDescriptor string
    The descriptor of the group.
    groupDescriptor String
    The descriptor of the group.
    groupDescriptor string
    The descriptor of the group.
    group_descriptor str
    The descriptor of the group.
    groupDescriptor String
    The descriptor of the group.

    getGroupMembership Result

    The following output properties are available:

    GroupDescriptor string
    Id string
    The provider-assigned unique ID for this managed resource.
    Members List<string>
    A list of user or group descriptors.
    GroupDescriptor string
    Id string
    The provider-assigned unique ID for this managed resource.
    Members []string
    A list of user or group descriptors.
    groupDescriptor String
    id String
    The provider-assigned unique ID for this managed resource.
    members List<String>
    A list of user or group descriptors.
    groupDescriptor string
    id string
    The provider-assigned unique ID for this managed resource.
    members string[]
    A list of user or group descriptors.
    group_descriptor str
    id str
    The provider-assigned unique ID for this managed resource.
    members Sequence[str]
    A list of user or group descriptors.
    groupDescriptor String
    id String
    The provider-assigned unique ID for this managed resource.
    members List<String>
    A list of user or group descriptors.

    Package Details

    Repository
    Azure DevOps pulumi/pulumi-azuredevops
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuredevops Terraform Provider.
    azuredevops logo
    Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi