I am struggling on how to copy all Azure AD groups from one user to another. I used the command below and the Azure AD Groups copy successfully but it also tries to copy the the traditional AD groups which I do not want.
Here’s something more to such a filter / comparison you might want to consider anyway:
Next time please … When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.