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),
});
}
}
Inherited Members
Namespace: Pulumi.AzureAD
Assembly: Pulumi.AzureAD.dll
Syntax
public class GroupMember : CustomResource
Constructors
View SourceGroupMember(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 SourceGroupObjectId
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> |
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 SourceGet(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 |