terraform-provider-ad icon indicating copy to clipboard operation
terraform-provider-ad copied to clipboard

New Feature - ad_group_member resource

Open adarobin opened this issue 2 years ago • 2 comments

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

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

adarobin avatar Jul 08 '22 15:07 adarobin

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

dylanl321 avatar Jul 11 '22 14:07 dylanl321

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

benjamin-rousseau-shift avatar Jan 03 '24 02:01 benjamin-rousseau-shift