GetGroup
Gets information about an Azure Active Directory group.
NOTE: If you’re authenticating using a Service Principal then it must have permissions to
Read directory datawithin theWindows Azure Active DirectoryAPI.
Example Usage (by Group Display Name)
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const example = pulumi.output(azuread.getGroup({
name: "A-AD-Group",
}, { async: true }));import pulumi
import pulumi_azuread as azuread
example = azuread.get_group(name="A-AD-Group")using Pulumi;
using AzureAD = Pulumi.AzureAD;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AzureAD.GetGroup.InvokeAsync(new AzureAD.GetGroupArgs
{
Name = "A-AD-Group",
}));
}
}
Using GetGroup
function getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>function get_group(name=None, object_id=None, opts=None)func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)Note: This function is named
LookupGroupin the Go SDK.
public static class GetGroup {
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetGroup Result
The following output properties are available:
- Description string
The description of the AD Group.
- Id string
The provider-assigned unique ID for this managed resource.
- Members List<string>
The Object IDs of the Azure AD Group members.
- Name string
The name of the Azure AD Group.
- Object
Id string - Owners List<string>
The Object IDs of the Azure AD Group owners.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuread
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azureadTerraform Provider.