AnsweredAssumed Answered

Site JS API / setMembership() for a group

Question asked by slibert on Jun 19, 2014
Latest reply on Jun 19, 2014 by slibert
Hello all,

I'm customizing some sites using javascript api. Currently I figured out how to add members :

site.setMembership(userName, siteRole);

But I would like to add groups instead of huge number of users.
Does anybody knows how to do that ? Is there some other function I did not see, or can I use site.setMembership but with some tweak to tell it's a group ?