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
Write-LogMessage-API $APIName-tenant $TenantFilter-message "Creating group $($GroupObject.displayName) of type $NormalizedGroupType$(if ($NeedsEmail) { " with email $Email" })"-Sev Info
@@ -118,6 +119,20 @@ function Set-CIPPAuthenticationPolicy {
118
119
throw"Somehow you hit the default case with an input of $AuthenticationMethodId . You probably made a typo in the input for AuthenticationMethodId. It`'s case sensitive."
119
120
}
120
121
}
122
+
123
+
if ($PSBoundParameters.ContainsKey('GroupIds') -and$GroupIds) {
124
+
$CurrentInfo.includeTargets=@(
125
+
foreach ($idin$GroupIds ) {
126
+
[pscustomobject]@{
127
+
targetType='group'
128
+
id=$id
129
+
}
130
+
}
131
+
)
132
+
$OptionalLogMessage+=" and targeted groups set to $($CurrentInfo.includeTargets.id-join', ')"
133
+
}
134
+
135
+
121
136
# Set state of the authentication method
122
137
try {
123
138
if ($PSCmdlet.ShouldProcess($AuthenticationMethodId,"Set state to $State$OptionalLogMessage")) {
0 commit comments