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 $Userobj.tenantid-user $request.headers.'x-ms-client-principal'-message "Added $member to $($userobj.groupid) group"-Sev "Info"
49
50
$body=$results.add("Success. $member has been added")
50
-
} else {
51
-
Write-LogMessage-API $APINAME-tenant $Userobj.tenantid-user $request.headers.'x-ms-client-principal'-message "You cannot add a contact to a security group"-Sev "Error"
52
-
$body=$results.add("You cannot add a contact to a security group")
51
+
}
52
+
else {
53
+
Write-LogMessage-API $APINAME-tenant $Userobj.tenantid-user $request.headers.'x-ms-client-principal'-message "You cannot add a contact to a security group"-Sev "Error"
54
+
$body=$results.add("You cannot add a contact to a security group")
55
+
}
53
56
}
54
-
}
55
57
catch {
56
58
$body=$results.add("Failed to add member $member to $($userobj.Groupid): $($_.Exception.Message)")
57
59
}
@@ -149,16 +151,16 @@ if ($userobj.allowExternal -eq 'true') {
0 commit comments