Skip to content

Commit

Permalink
azuread_group - support the `SubscribeMembersToCalendarEventsDisabl…
Browse files Browse the repository at this point in the history
…ed` value in the `behaviors` property (#785)
  • Loading branch information
manicminer authored Apr 27, 2022
1 parent ba5bf8a commit 6b167b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions internal/services/groups/group_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func groupResource() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{
msgraph.GroupResourceBehaviorOptionAllowOnlyMembersToPost,
msgraph.GroupResourceBehaviorOptionHideGroupInOutlook,
msgraph.GroupResourceBehaviorOptionSubscribeMembersToCalendarEventsDisabled,
msgraph.GroupResourceBehaviorOptionSubscribeNewGroupMembers,
msgraph.GroupResourceBehaviorOptionWelcomeEmailDisabled,
}, false),
Expand Down

0 comments on commit 6b167b7

Please sign in to comment.