We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b14758 commit efb70f8Copy full SHA for efb70f8
Modules/CIPPCore/Public/New-CIPPGroup.ps1
@@ -167,7 +167,15 @@ function New-CIPPGroup {
167
GroupType = $NormalizedGroupType
168
Email = if ($NeedsEmail) { $Email } else { $null }
169
}
170
-
+ if ($GroupObject.subscribeMembers) {
171
+ #Waiting for group to become available in Exo.
172
+ Start-Sleep -Seconds 10
173
+ $SubParams = @{
174
+ Identity = $GraphRequest.id
175
+ 'autoSubscribeNewMembers' = $true
176
+ }
177
+ $null = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Set-UnifiedGroup' -cmdParams $SubParams
178
179
} else {
180
# Handle Exchange Online groups (Distribution, DynamicDistribution)
181
0 commit comments