Forum Discussion
Group owner as global admin
- Jun 20, 2019
This is expected behavior. To delete a plan (or group), you should have been already added as owner of the group. You can't delete the plan without being a owner of the group even though you have Global Admin privilege.
Since you have global admin privilege, you can easily add yourself as owner of the group using the Exchange Online powershell cmdlet https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/add-unifiedgrouplinks?view=exchange-ps and try again.
$userToAddOwner = "globaladmin@yourdomain.com"
Add-UnifiedGroupLinks –Identity "O365Group" –LinkType Owners –Links $userToAddOwner
This is expected behavior. To delete a plan (or group), you should have been already added as owner of the group. You can't delete the plan without being a owner of the group even though you have Global Admin privilege.
Since you have global admin privilege, you can easily add yourself as owner of the group using the Exchange Online powershell cmdlet https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/add-unifiedgrouplinks?view=exchange-ps and try again.
$userToAddOwner = "globaladmin@yourdomain.com"
Add-UnifiedGroupLinks –Identity "O365Group" –LinkType Owners –Links $userToAddOwner
Thanks kombaiah Murugan!
when using PowerShell I have to manually fill group name and user name such as. I was hoping to set a default, add my user as an owner to all groups created within my organization.
Any idea?
- kombaiah MuruganJun 21, 2019Brass Contributor
You can try below script :
$userToAddOwner = "globaladmin@yourdomain.com"
Get-UnifiedGroup -ResultSize Unlimited | ForEach-Object {
Add-UnifiedGroupLinks –Identity $_.Name –LinkType Owners –Links $userToAddOwner
}- OAGM-JUJun 25, 2019Copper ContributorThanks! I have to send this to our IT, somehow I can not enable Exchange PowerShell on my computer, even though I am a global admin. Mahalo for your help!