Skip to content

Commit

Permalink
Fixing issue microsoft#5625
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Jan 14, 2025
1 parent ebe9c90 commit 2c150cf
Show file tree
Hide file tree
Showing 2 changed files with 4 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

* AADAuthenticationRequirement
* Filtered guests from the export, to prevent errors during export
FIXES [#5625](https://github.com/microsoft/Microsoft365DSC/issues/5625)
* AADGroupEligibilitySchedule
* New resource for Privileged Identity Management (PIM) for Groups
* AADNamingLocationPolicy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function Export-TargetResource

try
{
[array]$getValue = Get-MgUser -ErrorAction Stop -All | Where-Object -FilterScript { $null -ne $_.Id }
[array]$getValue = Get-MgUser -Filter "userType eq 'member'" -All -ErrorAction Stop | Where-Object -FilterScript { $null -ne $_.Id }

$i = 1
$dscContent = ''
Expand Down

0 comments on commit 2c150cf

Please sign in to comment.