Skip to content

Commit

Permalink
removed trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tkol2022 committed Sep 26, 2024
1 parent 3a49c49 commit 3944286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PowerShell/ScubaGear/Modules/Providers/ExportAADProvider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function Export-AADProvider {
# While ConvertTo-Json won't mess up a dict as described in the above comment,
# on error, $TryCommand returns an empty list, not a dictionary.
$PrivilegedUsers = if ($null -eq $PrivilegedUsers) {"{}"} else {$PrivilegedUsers}

# Get-PrivilegedRole provides a list of security configurations for each privileged role and information about Active user assignments
if ($RequiredServicePlan){
# If the tenant has the premium license then we also include calls to PIM APIs
Expand Down Expand Up @@ -352,7 +352,7 @@ function LoadObjectDataIntoPrivilegedUserHashtable {
)
# Write-Warning "Recursion level: $recursioncount"

# We support group nesting up to 2 levels deep (stops after processing levels 0 and 1).
# We support group nesting up to 2 levels deep (stops after processing levels 0 and 1).
# Safeguard: Also protects against infinite loops if there is a circular group assignment in PIM.
if ($recursioncount -ge 2) {
return
Expand Down Expand Up @@ -424,7 +424,7 @@ function LoadObjectDataIntoPrivilegedUserHashtable {
$PIMGroupMembers = Invoke-GraphDirectly @graphArgs
foreach ($GroupMember in $PIMGroupMembers) {
# Write-Warning "Processing role: $($RoleName) PIM group Eligible member: $($GroupMember.PrincipalId)"

# If the user is not a member of the PIM group (i.e. they are an owner) then skip them
if ($GroupMember.AccessId -ne "member") { continue }
$PIMEligibleUserId = $GroupMember.PrincipalId
Expand Down

0 comments on commit 3944286

Please sign in to comment.