We are trying to retrieve the SID of a msolgroup using Powershell. But I can't find anywhere it is exposed. Anyone know how to do this?
We need it in order to set the OneDrive Secondary Admin on individual mysites:
$SID = "c:0-.f|rolemanager|xxxxxxx"Set-SPOUser -Site $site.url -IsSiteCollectionAdmin $true -LoginName $SID