1 Reply Latest reply on Feb 20, 2014 4:55 PM by Ryan Rutan

    Add user to security group using GroupManager in Jive7

    nbywater

      In Jive6 we could use the following code to add a user to a security group:

      Group group;

      group = groupManager.getGroup("mygroup");

      group.addMember(targetUser);



      In Jive7, does anyone know how to accomplish this?  The group object no longer as the .addMember method.  We've tried this:


      groupManager.update(newGroup.getMutableGroup());

      updateResult.GroupsAddedTo.add(group);

       

      But this isn't working.