Copy of the object ID of the source group
![](https://www.azure365pro.com/wp-content/uploads/2022/06/image-79-1024x490.png)
Get the members of the group using object ID to make sure you are on the right group
Get-AzureADGroupMember -ObjectId a8a3b9f5-3451-4e17-923c-06554e841f55 -All $true
![](https://www.azure365pro.com/wp-content/uploads/2022/06/image-80-1024x128.png)
Copy the object ID of the target group
![](https://www.azure365pro.com/wp-content/uploads/2022/06/image-81-1024x582.png)
Copy the target group object ID in the second object ID
(Get-AzureADGroupMember -ObjectId a8a3b9f5-3451-4e17-923c-06554e841f55 -All $true) | ForEach-Object {Add-AzureADGroupMember -ObjectId 37cc533e-17ac-4db5-b474-5c5f9a228ed5 -RefObjectId $_.ObjectID}
![](https://www.azure365pro.com/wp-content/uploads/2022/06/image-82-1024x224.png)
Now the Members have been copied from source to target Azure AD group
(Get-AzureADGroupMember -ObjectId a8a3b9f5-3451-4e17-923c-06554e841f55 -All $true).count (Get-AzureADGroupMember -ObjectId 37cc533e-17ac-4db5-b474-5c5f9a228ed5 -All $true).count