09-17-2009 01:10 PM
09-25-2009 08:32 AM
var sites = siteService.listSites("","",0);
for (var i=0; i<sites.length(); i++) {
sites[i].setMembership("dlinton","SiteManager");
}
01-06-2011 06:34 AM
02-01-2011 02:50 PM
01010006 Wrapped Exception (with status template): 01010031 Error during processing of the template 'Method public org.alfresco.repo.jscript.ScriptableHashMap org.alfresco.repo.site.script.Site.listMembers(java.lang.String,java.lang.String,int) threw an exception when invoked on org.alfresco.repo.site.script.Site@1240567'. Please contact your system administrator.
var site = siteService.getSite("XXXX");
site.setMembership("admin", "SiteManager");
Failed to run Actions due to error: 01010033 Failed to execute script 'workspace://SpacesStore/75dd0795-6b70-45ba-bb30-d00668091313': 01010032 An authority was not found for GROUP_site_XXXX_SiteManager
var siteGroup = groups.createRootGroup( "site_" + sitename, sitename );
siteGroup.createGroup( "site_" + sitename + "_SiteManager", sitename );
siteGroup.createGroup( "site_" + sitename + "_SiteCollaborator", sitename );
siteGroup.createGroup( "site_" + sitename + "_SiteContributor", sitename );
siteGroup.createGroup( "site_" + sitename + "_SiteConsumer", sitename );
var site = siteService.getSite( sitename );
site.setMembership( "admin", "SiteManager");
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.