Command to add members of one group to the other group (Group migration)
If you want to add all the members from group1 to the group2 user the below command
syntex:
dsget group “Source group DN” -members | dsmod group “Destination group DN” -addmbr
Example:
dsget group “CN=Group1,OU=Test,DC=test,DC=com” -members |
dsmod group “CN=Group2,OU=Test,DC=Test,DC=com”
-addmbr
Check the below link to find the group DN