File tree Expand file tree Collapse file tree
Modules/CIPPCore/Public/Entrypoints/Activity Triggers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ function Push-UpdatePermissionsQueue {
7070 Write-Information " Updated tenant domains $ ( $UpdatedTenant.defaultDomainName ) "
7171 }
7272 }
73+
74+ if ($Item.RunAccessCheck -eq $true -and $Item.defaultDomainName -ne ' PartnerTenant' ) {
75+ try {
76+ Write-Information " Running post-update access check for $ ( $Item.displayName ) "
77+ $null = Test-CIPPAccessTenant - Tenant $Item.customerId
78+ } catch {
79+ Write-Warning " Post-update access check failed for $ ( $Item.displayName ) : $ ( $_.Exception.Message ) "
80+ }
81+ }
7382 } catch {
7483 Write-Information " Error updating permissions for $ ( $Item.displayName ) "
7584 Write-LogMessage - tenant $Item.defaultDomainName - tenantId $Item.customerId - message " Error updating permissions for $ ( $Item.displayName ) - $ ( $_.Exception.Message ) " - Sev ' Error' - API ' UpdatePermissionsQueue'
You can’t perform that action at this time.
0 commit comments