How to Assign a User to SharePoint Online Administrator Role in Office 365?

Requirement: Set SharePoint Online Administrator

As the SharePoint Online administration is done by people other than Tenant Admin (or Global Administrator!) in most companies, You may need to delegate Office 365 roles so that users get administrative privileges to specific services like SharePoint without being full tenant admins. Global administrators in Office 365 have the right to assign users with SharePoint administrator roles to manage SharePoint Online.

Users with a SharePoint admin role can manage site collections such as creating sites, Deleting sites, designating site collection administrators, Managing site collection storage, managing service applications like user profiles, and more. In addition, SharePoint admins can manage Office 365 groups, including creating, deleting, and restoring groups. Let’s see how to give SharePoint Online admin access.

How to Assign the SharePoint Online Administrator Role?

How do I add a user to SharePoint Admin Center? Basically, You have to assign users with a SharePoint admin role through the Microsoft admin center. To add a user to a SharePoint Online Administrator, do the following:

  • Login to Office 365 Admin Center: https://admin.microsoft.com
  • Expand the “Users” node in the left navigation >> Click on Active Users 
  • Search and select the user you want to make SharePoint Online Administrator >> Click on “Manage Roles” from the toolbar. 
  • In the Manage role pane, select the “Admin Center Access” option and then tick the checkbox for “SharePoint Admin”. 
  • Click on the “Save Changes” button once done.
    add user to sharepoint online administrator

This assigns SharePoint Online administrator in Office 365. Alternately, You can click on the “Roles” link from the left navigation of the Admin Center >> Click on “SharePoint Admin” and then “Add Users” to the SharePoint Online Administrator role.

how to assign sharepoint online administrator

This provides access to the SharePoint Admin Center.

PowerShell to Add User to SharePoint  Online Administrator Role

As an administrator of Microsoft 365, you may want to add a SharePoint Online administrator who can help manage your company’s SharePoint Online site. You’ll be able to add a SharePoint Online administrator with just a few lines of PowerShell script.

Here is the PowerShell to add a user to the SharePoint Admin role in Office 365:

#Connect to Azure AD
Connect-AzureAD

#Parameters
$UserAccount="[email protected]"
$RoleName="SharePoint Service Administrator"

#Get the User
$User = Get-AzureADUser | Where {$_.UserPrincipalName -eq $UserAccount}

#Get the Role
$Role = Get-AzureADDirectoryRole | Where {$_.DisplayName -eq $RoleName}

#Add User to Role
Add-AzureADDirectoryRoleMember -ObjectId $Role.ObjectId -RefObjectId $User.ObjectID

This would prompt credentials. Enter your Global Administrator credentials to authenticate in Azure AD to add a user to SharePoint Admin Center.

Please note that SharePoint Site collection administrators could be different from SharePoint Online Administrators! Site collection Admins don’t need an admin role in Office 365 and cannot access the SharePoint admin center.

It’s a good idea to grant the “Service Administrator” role in addition to SharePoint Online Administrators, so that they get all service notifications, such as downtime, known issues, etc. in the service health and message center dashboard!

You can use the same approach to add additional global admins as well. Here is how to set Global admin for SharePoint Online using PowerShell:

#Connect to Azure AD
Connect-AzureAD
 
#Parameters
$UserAccount="[email protected]"
$RoleName="Company Administrator"
 
#Get the User
$User = Get-AzureADUser | Where {$_.UserPrincipalName -eq $UserAccount}
 
#Get the Role
$Role = Get-AzureADDirectoryRole | Where {$_.DisplayName -eq $RoleName}
 
#Add User to Role
Add-AzureADDirectoryRoleMember -ObjectId $Role.ObjectId -RefObjectId $User.ObjectID

How to Set Global Admin for SharePoint Online using PowerShell?

Please note that granting “SharePoint Admin” or “Global Admin” doesn’t gain you access to the site automatically! You must add the user as a Site Collection Administrator to the sites to gain full control! Here is how: How to Add Site Collection Administrator in SharePoint Online using PowerShell?

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published.