How to add all members of one group to the other group

By | June 18, 2009

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

how to find the ldap path

 

Leave a Reply

Your email address will not be published. Required fields are marked *