As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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); } } }
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?