We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83d182d commit 99787a0Copy full SHA for 99787a0
1 file changed
Modules/CIPPCore/Public/Get-CIPPDrift.ps1
@@ -424,6 +424,11 @@ function Get-CIPPDrift {
424
425
# Check for extra Conditional Access policies not in template
426
foreach ($TenantCAPolicy in $TenantCAPolicies) {
427
+ # SharePoint auto-creates '[SharePoint admin center]...' CA policies when unmanaged
428
+ # device access is restricted (Set-SPOTenant -ConditionalAccessPolicy, e.g. via the
429
+ # unmanagedSync standard). They are system-managed, cannot be templated and come
430
+ # back when deleted, so they are never a deviation.
431
+ if (([string]$TenantCAPolicy.displayName).StartsWith('[SharePoint admin center]')) { continue }
432
$PolicyFound = $false
433
434
foreach ($TemplateCAPolicy in $TemplateCATemplates) {
0 commit comments