You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/New-CIPPCAPolicy.ps1
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,8 @@ function New-CIPPCAPolicy {
61
61
$GroupIds.Add($NewGroup.GroupId)
62
62
}
63
63
} else {
64
-
Write-Warning"Group $_ not found in the tenant"
64
+
Write-Warning"Group $_ not found in the tenant and CreateGroups is disabled"
65
+
throw"Group '$_' not found in tenant $TenantFilter. Enable 'Create groups if they do not exist' or create the group manually before deploying this policy."
0 commit comments