Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Jun 16, 2023
1 parent 4a27ecc commit 369f8d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# UNRELEASED

* EXORoleGroup
* Fixes an issue where the role group wasn't getting created when members were null.
FIXES [#3217](https://github.com/microsoft/Microsoft365DSC/issues/3217)
* SCProtectionAlert
* Prevents extracting system rules.
FIXES [#3224](https://github.com/microsoft/Microsoft365DSC/issues/3224)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ function Set-TargetResource
$NewRoleGroupParams = @{
Name = $Name
Description = $Description
Members = $Members
Roles = $Roles
Confirm = $false
}
Expand All @@ -222,6 +221,10 @@ function Set-TargetResource
{
Write-Verbose -Message "Role Group '$($Name)' does not exist but it should. Create and configure it."
# Create Role Group
if ($Members.Length -gt 0)
{
$NewRoleGroupParams.Add("Members", $Members)
}
New-RoleGroup @NewRoleGroupParams
}
# CASE: Role Group exists but it shouldn't;
Expand Down

0 comments on commit 369f8d1

Please sign in to comment.