Adding a new site admin to all SharePoint Online sites
This recipe details the process of assigning a new site administrator across all SharePoint Online sites using the SharePoint Online Management Shell. This approach is efficient for managing access across multiple sites simultaneously and will be useful for granting org-wide site access to site developers without granting the full SharePoint admin role.
Getting ready
Ensure you have administrative privileges on your system, as well as an administrative role as a SharePoint or Global Administrator to manage SharePoint Online.
To access SharePoint Online PowerShell cmdlets and functions, you must download and install the SharePoint Online Management Shell (link included in the See also section of this recipe). Then, follow the instructions in this chapter’s earlier recipe, Connecting via PowerShell to SharePoint Online, to connect to your SharePoint Online environment.
How to do it…
- Once connected...