SharePoint Online – How to add an additional admin to all sites

This is just going to be a very short form example showing some code to add an Additional Admin to every SharePoint online site. The Code The code below will find all modern, teams and publishing site collections, it will then loop through them all and add a defined user as an additional admin. Be sure to change the *orgName* and *emailOfOwnerToAdd* sections to your … Continue reading SharePoint Online – How to add an additional admin to all sites