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 site = siteService.getSite("demosite"); site.setMembership("mcasanket", "SiteCollaborator");
site.setMembership("mcasanket", "SiteCollaborator");
You can set site membership in js like this:var site = siteService.getSite("demosite"); site.setMembership("mcasanket", "SiteCollaborator");
This will always set the same ("mcasanket") user to site, is that what you want?Or did you alternate it so you take the username from the script arguments?