Show / Hide Table of Contents

Class GroupMember

Manages a single Group Membership within Azure Active Directory.

NOTE: Do not use this resource at the same time as azuread_group.members.

Example Usage

using Pulumi;
using AzureAD = Pulumi.AzureAD;

class MyStack : Stack
{
public MyStack()
{
    var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs
    {
        UserPrincipalName = "jdoe@hashicorp.com",
    }));
    var exampleGroup = new AzureAD.Group("exampleGroup", new AzureAD.GroupArgs
    {
    });
    var exampleGroupMember = new AzureAD.GroupMember("exampleGroupMember", new AzureAD.GroupMemberArgs
    {
        GroupObjectId = exampleGroup.Id,
        MemberObjectId = exampleUser.Apply(exampleUser => exampleUser.Id),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
GroupMember
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AzureAD
Assembly: Pulumi.AzureAD.dll
Syntax
public class GroupMember : CustomResource

Constructors

View Source

GroupMember(String, GroupMemberArgs, CustomResourceOptions)

Create a GroupMember resource with the given unique name, arguments, and options.

Declaration
public GroupMember(string name, GroupMemberArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

GroupMemberArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

GroupObjectId

The Object ID of the Azure AD Group you want to add the Member to. Changing this forces a new resource to be created.

Declaration
public Output<string> GroupObjectId { get; }
Property Value
Type Description
Output<System.String>
View Source

MemberObjectId

The Object ID of the Azure AD Object you want to add as a Member to the Group. Supported Object types are Users, Groups or Service Principals. Changing this forces a new resource to be created.

Declaration
public Output<string> MemberObjectId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, GroupMemberState, CustomResourceOptions)

Get an existing GroupMember resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static GroupMember Get(string name, Input<string> id, GroupMemberState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

GroupMemberState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
GroupMember
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.