Updating AllowToAddGuests

A colleague reached out regarding an issue. He had created a Team and applied a sensitivity label to it. Unfortunately, this sensitivity label disabled external sharing. He then went ahead and remvoed the label, but he still couldn’t add external users (even after waiting for a few days).

I took a look at the group and found that sharing to guests is still disabled. This can be done via an EXO cmdlet: Get-UnifiedGroup '<group name>' | fl *Gues*

Turns out the Set-UnifiedGroup cmdlet doesn’t have an option to toggle this. Got to use Graph API for this, specifically the group settings endpoint. Here’s what I did: