Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5430 #5464

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
* Added logic to update an existing recipient's permissions.
* EXOTransportRule
* Changed how empty arrays are returned.

* IntuneAndroidManagedStoreAppConfiguration
* Initial release.
* IntuneAppConfigurationPolicy
* Fixes an issue where assignment wasn't properly set if the
groupId was null.
FIXES [#5430](https://github.com/microsoft/Microsoft365DSC/issues/5430)
* TeamsUserPolicyAssignment
* Added support for the Global policies.
* TeamsUpgradePolicy
Expand Down
6 changes: 5 additions & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCDRGUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,11 @@ function ConvertTo-IntunePolicyAssignment
}
elseif ($assignment.dataType -like '*GroupAssignmentTarget')
{
$group = Get-MgGroup -GroupId ($assignment.groupId) -ErrorAction SilentlyContinue
$group = $null
if (-not [System.String]::IsNullOrEmpty($assignment.groupId))
{
$group = Get-MgGroup -GroupId ($assignment.groupId) -ErrorAction SilentlyContinue
}
if ($null -eq $group)
{
if ($assignment.groupDisplayName)
Expand Down