From d01ba052f3d58fa7976fd7840c3b25df9670aef4 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Wed, 27 Apr 2022 12:30:04 +0100 Subject: [PATCH] `azuread_group` - support the `SubscribeMembersToCalendarEventsDisabled` value in the `behaviors` property --- docs/resources/group.md | 2 +- internal/services/groups/group_resource.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/group.md b/docs/resources/group.md index 1b8defa1b1..eeedfad265 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -111,7 +111,7 @@ The following arguments are supported: ~> **Known Permissions Issue** The `auto_subscribe_new_members` property can only be set when authenticating as a Member user of the tenant and _not_ when authenticating as a Guest user or as a service principal. Please see the [Microsoft Graph Known Issues](https://docs.microsoft.com/en-us/graph/known-issues#groups) documentation. -* `behaviors` - (Optional) A set of behaviors for a Microsoft 365 group. Possible values are `AllowOnlyMembersToPost`, `HideGroupInOutlook`, `SubscribeNewGroupMembers` and `WelcomeEmailDisabled`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for more details. Changing this forces a new resource to be created. +* `behaviors` - (Optional) A set of behaviors for a Microsoft 365 group. Possible values are `AllowOnlyMembersToPost`, `HideGroupInOutlook`, `SubscribeMembersToCalendarEventsDisabled`, `SubscribeNewGroupMembers` and `WelcomeEmailDisabled`. See [official documentation](https://docs.microsoft.com/en-us/graph/group-set-options) for more details. Changing this forces a new resource to be created. * `description` - (Optional) The description for the group. * `display_name` - (Required) The display name for the group. * `dynamic_membership` - (Optional) A `dynamic_membership` block as documented below. Required when `types` contains `DynamicMembership`. Cannot be used with the `members` property. diff --git a/internal/services/groups/group_resource.go b/internal/services/groups/group_resource.go index c87ffbb61b..d3dd3020cc 100644 --- a/internal/services/groups/group_resource.go +++ b/internal/services/groups/group_resource.go @@ -80,6 +80,7 @@ func groupResource() *schema.Resource { ValidateFunc: validation.StringInSlice([]string{ msgraph.GroupResourceBehaviorOptionAllowOnlyMembersToPost, msgraph.GroupResourceBehaviorOptionHideGroupInOutlook, + msgraph.GroupResourceBehaviorOptionSubscribeMembersToCalendarEventsDisabled, msgraph.GroupResourceBehaviorOptionSubscribeNewGroupMembers, msgraph.GroupResourceBehaviorOptionWelcomeEmailDisabled, }, false),