From 0f72d26f2f280615b32804f6d625d892187e566e Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Thu, 26 Aug 2021 17:23:18 +0100 Subject: [PATCH] Clarify exclusivity of group_member resource and group.members property --- docs/resources/group.md | 2 +- docs/resources/group_member.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/group.md b/docs/resources/group.md index 25423cc695..919f6a9ed3 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -90,7 +90,7 @@ The following arguments are supported: * `mail_nickname` - (Optional) The mail alias for the group, unique in the organisation. Required for mail-enabled groups. Changing this forces a new resource to be created. * `members` - (Optional) A set of members who should be present in this group. Supported object types are Users, Groups or Service Principals. -!> **Warning** Do not use the `azuread_group_member` resource at the same time as the `members` argument. +!> **Warning** Do not use the `members` property at the same time as the [azuread_group_member](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/group_member) resource for the same group. Doing so will cause a conflict and group members will be removed. * `owners` - (Optional) A set of object IDs of principals that will be granted ownership of the group. Supported object types are users or service principals. By default, the principal being used to execute Terraform is assigned as the sole owner. Groups cannot be created with no owners or have all their owners removed. diff --git a/docs/resources/group_member.md b/docs/resources/group_member.md index 2a655ebe48..e33832a927 100644 --- a/docs/resources/group_member.md +++ b/docs/resources/group_member.md @@ -6,7 +6,7 @@ subcategory: "Groups" Manages a single group membership within Azure Active Directory. --> **Warning** Do not use this resource at the same time as the `members` property of the `azuread_group` resource. +~> **Warning** Do not use this resource at the same time as the `members` property of the `azuread_group` resource for the same group. Doing so will cause a conflict and group members will be removed. ## API Permissions