Skip to content

Commit

Permalink
Merge pull request #5338 from NikCharlebois/Dev
Browse files Browse the repository at this point in the history
Fixes #5331
  • Loading branch information
NikCharlebois authored Nov 6, 2024
2 parents 438802a + eb52079 commit 036eb41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
* AADRoleEligibilityScheduleRequest
* Fixes for Custom roles.
FIXES [#5330](https://github.com/microsoft/Microsoft365DSC/issues/5330)
* Fixes to remove elegibility schedule for custom roles.
FIXES [#5331](https://github.com/microsoft/Microsoft365DSC/issues/5331)
* AADRoleManagementPolicyRule
* Initial release.
* AADServicePrincipal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
$schedule = $instance
}
}
[Array]$request = Get-MgBetaRoleManagementDirectoryRoleEligibilityScheduleRequest -Filter "PrincipalId eq '$PrincipalId' and RoleDefinitionId eq '$RoleDefinitionId'" | Sort-Object -Property CompletedDateTime -Descending
[Array]$request = Get-MgBetaRoleManagementDirectoryRoleEligibilityScheduleRequest -Filter "PrincipalId eq '$PrincipalId' and RoleDefinitionId eq '$($schedule.RoleDefinitionId)'" | Sort-Object -Property CompletedDateTime -Descending
`
if ($request.Length -gt 1)
{
Expand All @@ -200,6 +200,7 @@
}
else
{
Write-Verbose -Message "Request is not null: $request"
$ObjectGuid = [System.Guid]::empty
if ($PrincipalType -eq 'User')
{
Expand Down

0 comments on commit 036eb41

Please sign in to comment.