Use this command to give a group the same group memberships
as another group.
Purpose
Use the
duplicateMembershipOfGroup command
to make a group a member of all the same groups as another group.
For example, group A is in group B and group C. Use the duplicateMembershipOfGroup
command to add group D to the same groups as group A.
If successful,
the duplicateMembershipOfGroup command returns
the unique name of the group specified in the copyToUniqueName parameter.
Syntax
duplicateMembershipOfGroup { -copyFromUniqueName uniqueName -copyToUniqueName uniqueName }
Parameters
- -copyFromUniqueName uniqueName
- Specifies the name of the group from which you want to copy the
group memberships for another group to use.
- -copyToUniqueName uniqueName
- Specifies the name of the group to which you want to add the memberships
of the group specified in the copyFromUniqueName parameter.
Sample
To give the operators group the same
group memberships as the admins group, issue this command:
$AdminTask duplicateMembershipOfGroup
{–copyFromUniqueName cn=admins,cn=groups,dc=yourco,dc=com
-copyToUniqueName cn=operators,cn=groups,dc=yourco,dc=com }