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.
Can all users create new sites in share. Managers can manage sites, as in add users, but can I limit the users that have permission to create sites.
How do you create a user so that they are a manager?
function main() { //Code below is added to check if user has administrator permissions if (person == null || !people.isAdmin(person)) { status.setCode(status.STATUS_BAD_REQUEST, "Site creation is not allowed, your have to be an Administrator"); return; } // Get the details of the site var shortName = json.get("shortName"); if (shortName == null || shortName.length == 0) { status.setCode(status.STATUS_BAD_REQUEST, "Short name missing when creating site"); return; } // See if the shortName is available var site = siteService.getSite(shortName); if (site != null) { status.setCode(status.STATUS_INTERNAL_SERVER_ERROR, "error.duplicateShortName"); return; } var sitePreset = json.get("sitePreset"); if (shortName == null || shortName.length == 0) { status.setCode(status.STATUS_BAD_REQUEST, "Site preset missing when creating site"); return; } var title = json.get("title"); var description = json.get("description"); var isPublic = json.getBoolean("isPublic"); // Create the site var site = siteService.createSite(sitePreset, shortName, title, description, isPublic); // Put the created site into the model model.site = site; } main();