Reader small image

You're reading from  Microsoft Office 365 Administration Cookbook

Product typeBook
Published inSep 2020
PublisherPackt
ISBN-139781838551230
Edition1st Edition
Right arrow
Author (1)
Nate Chamberlain
Nate Chamberlain
author image
Nate Chamberlain

Nate Chamberlain is a technical content creator, solution architect, and trainer, recognized as a 5-year Microsoft MVP. With a background in business analysis and systems administration, Nate has authored seven books and manages his blog. He holds an array of certifications, including M365 Enterprise Administrator Expert and Microsoft Power Platform App Maker Associate, and is a frequent speaker at user groups and conferences.
Read more about Nate Chamberlain

Right arrow

Adding a new site collection admin to all SharePoint Online sites

Administration of sites requires having a certain level of access for a site collection. Users with the SharePoint Admin role have full control access to all sites, but there may be a reason to give a user without an Admin role elevated SharePoint access (for example, a site developer). This recipe explains how to give an admin access to all SharePoint Online sites. However, it can be amended to give such access to specific site collections, or a single site collection.

Getting ready

This recipe will utilize the skills learned in the Setting up the PowerShell environment recipe in Chapter 1, Office 365 Setup and Basic Administration, and the Connecting via PowerShell to SharePoint Online recipe in this chapter, and require that you are a global or SharePoint admin.

How to do it…

Update the -LoginName parameter, and then run the following code snippet:

$Sites = Get-SPOSite -Limit ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Microsoft Office 365 Administration Cookbook
Published in: Sep 2020Publisher: PacktISBN-13: 9781838551230

Author (1)

author image
Nate Chamberlain

Nate Chamberlain is a technical content creator, solution architect, and trainer, recognized as a 5-year Microsoft MVP. With a background in business analysis and systems administration, Nate has authored seven books and manages his blog. He holds an array of certifications, including M365 Enterprise Administrator Expert and Microsoft Power Platform App Maker Associate, and is a frequent speaker at user groups and conferences.
Read more about Nate Chamberlain