GrouperShell (gsh) Group copy (GroupCopy)

GrouperShell (gsh) Group copy (GroupCopy)

 

Use this class to copy a group to another stem.

Sample call to copy everything

GroupCopy groupCopy = new GroupCopy(child_group, stem); Group newGroup = groupCopy.copyPrivilegesOfGroup(true).copyGroupAsPrivilege(true) .copyListMembersOfGroup(true).copyListGroupAsMember(true).copyAttributes(true) .save();

 

Options

Java docs: https://software.internet2.edu/grouper/doc/2.5.x/grouper/apidocs/edu/internet2/middleware/grouper/GroupCopy.html