File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Modules/CIPPCore/Public/Entrypoints/Activity Triggers Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,14 @@ Function Push-ExecOnboardTenantQueue {
101
101
}
102
102
if (($MissingRoles | Measure-Object ).Count -gt 0 ) {
103
103
$Logs.Add ([PSCustomObject ]@ { Date = Get-Date - UFormat $DateFormat ; Log = ' Missing roles for relationship' })
104
- if ($QueueItem .IgnoreMissingRoles -ne $true ) {
104
+ if ($Item .IgnoreMissingRoles -ne $true ) {
105
105
$TenantOnboarding.Status = ' failed'
106
106
$OnboardingSteps.Step2.Status = ' failed'
107
107
$OnboardingSteps.Step2.Message = " Your GDAP relationship is missing the following roles: $ ( $MissingRoles -join ' , ' ) "
108
+ } else {
109
+ $Logs.Add ([PSCustomObject ]@ { Date = Get-Date - UFormat $DateFormat ; Log = ' Ignoring missing roles' })
110
+ $OnboardingSteps.Step2.Status = ' succeeded'
111
+ $OnboardingSteps.Step2.Message = ' Your GDAP relationship is missing some roles, but the onboarding will continue'
108
112
}
109
113
} else {
110
114
$Logs.Add ([PSCustomObject ]@ { Date = Get-Date - UFormat $DateFormat ; Log = ' Required roles found' })
You can’t perform that action at this time.
0 commit comments