02-25-2011 05:05 PM
03-17-2011 05:54 PM
var allSites = siteService.listSites(null, null, 0);
for (var siteIndex = 0; siteIndex < allSites.length; siteIndex++) {
createAuthorities(allSites[siteIndex].shortName, ["YourCustomContributor", "YourCustomConsumer"]);
}
function createAuthorities(siteName, rolesList) {
var prefix = "site_" + siteName + "_";
for (var roleIndex = 0; roleIndex < rolesList.length; roleIndex++) {
var groupName = prefix + rolesList[roleIndex];
if (people.getGroup("GROUP_" + groupName) == null) {
people.createGroup(groupName);
}
}
}
03-21-2011 02:23 PM
03-22-2011 12:04 AM
hi guys,
I have already created my web site and now i want to create new custom roles..I'm facing the same issue;
Could you please tell me where did you add the Java Code Marco?
03-23-2011 08:54 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.