File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Activity Triggers/Standards
HTTP Functions/Tenant/Standards Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ function Push-CIPPStandardsList {
170170
171171 # Remove if both unchanged
172172 if (-not $PolicyChanged -and -not $StandardTemplateChanged ) {
173- [void ]$ComputedStandards.Remove ($Key )
173+ x [void ]$ComputedStandards.Remove ($Key )
174174 }
175175 }
176176 } catch {
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ function Invoke-CIPPStandardsRun {
5454 }
5555
5656 # Get tenant list for batch processing
57+ write-host " Getting tenants for filter: $TenantFilter "
5758 $AllTenantsList = if ($TenantFilter -eq ' allTenants' ) {
5859 Get-Tenants
5960 } else {
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ function Set-CIPPUserJITAdmin {
134134 }
135135 ' DeleteUser' {
136136 try {
137- $null = New-GraphPOSTRequest - type DELETE - uri " https://graph.microsoft.com/beta/users/$ ( $UserObj.id ) " - tenantid $TenantFilter
137+ $null = New-GraphPOSTRequest - type DELETE - uri " https://graph.microsoft.com/beta/users/$ ( $UserObj.userPrincipalName ) " - tenantid $TenantFilter
138138 $Message = " Deleted user $ ( $UserObj.displayName ) ($ ( $UserObj.userPrincipalName ) ) with id $ ( $UserObj.id ) "
139139 Write-LogMessage - Headers $Headers - API $APIName - tenant $TenantFilter - message $Message - Sev ' Info'
140140 return $Message
You can’t perform that action at this time.
0 commit comments