Skip to content

Commit

Permalink
Update PowerShell/ScubaGear/Modules/Providers/ExportAADProvider.psm1
Browse files Browse the repository at this point in the history
Co-authored-by: David Bui <105074908+buidav@users.noreply.github.com>
  • Loading branch information
2 people authored and schrolla committed Jan 19, 2024
1 parent f6552cd commit 1c91a5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function Get-PrivilegedUser {
$PIMEligibleUserId = $GroupMember.PrincipalId

# If the user's data has not been fetched from graph, go get it
if (-Not $PrivilegedUsers.ContainsKey($PIMEligibleUserId)) {
if (-not $PrivilegedUsers.ContainsKey($PIMEligibleUserId)) {
$AADUser = Get-MgBetaUser -ErrorAction Stop -UserId $PIMEligibleUserId
$PrivilegedUsers[$PIMEligibleUserId] = @{"DisplayName"=$AADUser.DisplayName; "OnPremisesImmutableId"=$AADUser.OnPremisesImmutableId; "roles"=@()}
}
Expand Down

0 comments on commit 1c91a5f

Please sign in to comment.