Hello Everyone
- I am keep getting requests to change AAD group owner and I tried using PowerShell but not able to change with any of modules - I tried Azad and mgGraph
- can you please help with this
- thanks
Hello Everyone
Hi, welcome to the forum ![]()
Difficult to know what the problem is as you’ve not posted any code or error messages. However, using Graph, the basic command to add a group owner is:
New-MgGroupOwner -GroupId <group id> -DirectoryObjectId <user id>
If you do decide to share code, please make sure to use the </> button to format it correctly. If you cannot see the </> button it will be hiding under the gear icon.
You need to use either $groupID.Id for the parameter or
Select-Object -ExpandProperty Id
when you query the group.
Thank you so much - its working now
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.