hashicorp / terraform-provider-ad

Active Directory provider for HashiCorp Terraform (experimental)
https://registry.terraform.io/providers/hashicorp/ad/latest
Mozilla Public License 2.0
140 stars 72 forks source link

New Feature - ad_group_member resource #151

Open adarobin opened 2 years ago

adarobin commented 2 years ago

Description

I think it would be useful if there were a resource named something like ad_group_member which could be used to control if a single entity was a member of an Active Directory Group. Other memberships to the target group would be ignored and preserved. Syntax would be similar to the existing ad_group_membership resource.

Obviously, using ad_group_membership and ad_group_member with the same Active Directory Group would cause issues.

Potential Terraform Configuration

resource ad_group_member "gm" {
    group_id = ad_group.g.id
    group_member  = ad_group.g2.id
}

References

Community Note

dylanl321 commented 2 years ago

This would be incredible useful. Currently I am having to have a map/list of users to then add as group members.

benjamin-rousseau-shift commented 9 months ago

This is would be the best thing, is this provider still maintained though ?