Skip to content

Commit

Permalink
Clarify exclusivity of group_member resource and group.members property
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Aug 26, 2021
1 parent 0df6cc6 commit 0f72d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/group_member.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0f72d26

Please sign in to comment.