Skip to content

Commit e269eee

Browse files
remove directTenant from CPV
1 parent 55c1b0d commit e269eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-UpdatePermissionsOrchestrator.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Start-UpdatePermissionsOrchestrator {
1515
'displayName' = '*Partner Tenant'
1616
}
1717

18-
$TenantList = Get-Tenants -IncludeAll | Where-Object { $_.Excluded -eq $false }
18+
$TenantList = Get-Tenants -IncludeAll | Where-Object { $_.Excluded -eq $false -and $_.delegatedPrivilegeStatus -eq 'directTenant' }
1919

2020
$Tenants = [System.Collections.Generic.List[object]]::new()
2121
foreach ($Tenant in $TenantList) {

0 commit comments

Comments
 (0)