Skip to content

Commit

Permalink
Merge pull request #3088 from Borgquite/patch-2
Browse files Browse the repository at this point in the history
Remove GroupTypes defaulting to Unified - fixes #3073
  • Loading branch information
NikCharlebois authored Mar 30, 2023
2 parents d04a7d4 + e08b492 commit 27f8051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* AADGroup
* Changed the SecurityEnabled and MailEnabled parameters to become mandatory.
FIXES [#3072](https://github.com/microsoft/Microsoft365DSC/issues/3072)
* Stopped GroupTypes defaulting to 'Unified' to allow creation of Security groups.
FIXES [#3073](https://github.com/microsoft/Microsoft365DSC/issues/3073)
* AADUser
* [BREAKING CHANGE] Remove deprecated parameter PreferredDataLocation* EXOAntiPhishPolicy
* [BREAKING CHANGE] Remove deprecated parameters EnableAntispoofEnforcement and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TargetResource

[Parameter()]
[System.String[]]
$GroupTypes = @('Unified'),
$GroupTypes,

[Parameter()]
[System.String]
Expand Down Expand Up @@ -402,10 +402,6 @@ function Set-TargetResource
Write-Verbose -Message 'Cannot set mailenabled to false if GroupTypes is set to Unified when creating group.'
throw 'Cannot set mailenabled to false if GroupTypes is set to Unified when creating a group.'
}
if (-not $GroupTypes -and $currentParameters.GroupTypes -eq $null)
{
$currentParameters.Add('GroupTypes', @('Unified'))
}

$currentValuesToCheck = @()
if ($currentGroup.AssignedLicenses.Length -gt 0)
Expand Down

0 comments on commit 27f8051

Please sign in to comment.