09-01-2015 05:21 AM
<webscript>
<shortname>AddUserToGroup</shortname>
<description>AddUserToGroup</description>
<url>/auth/AddUserToGroup/{user}</url>
<format default="html">argument</format>
<authentication>user</authentication>
<transaction>none</transaction>
</webscript>
var paramvalue=url.extension;
var user = people.getPerson(paramvalue);
var group = people.getGroup("GROUP_test");
if (user == undefined)
{
status.code = 404;
status.message = "User not found";
status.redirect = true;
}
else if (group == undefined)
{
status.code = 404;
status.message = "Group not found";
status.redirect = true;
}
else
{
people.addAuthority(group,user);
}
<html>
<head>
<title>Groups</title>
</head>
<body>
User assigned to group
</body>
</html>
09-01-2015 05:57 AM
people.addAuthority(group,user)
line.09-01-2015 06:23 AM
09-01-2015 07:16 AM
09-01-2015 07:34 AM
09-01-2015 07:51 AM
09-02-2015 06:43 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.