Adding the Personal Sites Collections Owner Permissions for SharePoint Online
You can add these permissions using one of the following methods:
-
Using the admin center (SharePoint Online 2010 and 2013)
SharePoint Online admin center allows granting owner permissions for only one personal site collection at a time, which means this procedure has to be done for every personal site collection.
-
Using a PowerShell script (SharePoint Online 2013 only)
A PowerShell script using SharePoint Online cmdlets is available to facilitate the task of granting owner permissions to a specific account for all personal site collections.
To add the Owner permission using SharePoint Online admin center
-
Access SharePoint Online administration center (https://your_domain-admin.sharepoint.com).
-
In the navigation panel on the left, click user profiles.
-
Click Manage User Profiles.
-
Use the search box to find the user profiles of the users you want to crawl.
-
Right-click an Account Name and then select Manage site collection owners.
-
Add the crawling account to the list of Site Collection Administrators.
-
Click OK.
To grant the Owner permission using SharePoint Online Management Shell
Notes:
-
You must regularly perform the following procedure when you want to grant permissions for site collections of new users.
-
This procedure applies to SharePoint Online only.
-
Install SharePoint Online management shell (see the Microsoft document Set up the SharePoint Online Management Shell Windows PowerShell environment).
-
Download the zipped COVEOSPO.PS1 script file to the server where the SharePoint Online management shell was previously installed.
Important: The script was updated on January 21, 2016.
-
Unzip the file.
-
On the Windows menu select Start > All Programs > SharePoint Online Management Shell.
-
Load the COVEOSPO.ps1 script.
Example: $> . C:\script\COVEOSPO.ps1
-
Run the Set-COVEOSPOMySitesOwner and Set-COVEOSPOSitesAdmin cmdlets.
The following table lists the parameters supported by each of the cmdlets:
Parameter and definition Set-COVEOSPOMySitesOwner Set-COVEOSPOSitesAdmin AdminSiteUrl
Specifies the URL of the SharePoint Online tenant.
✓ ✓ Specifies the username of the SharePoint Online global administrator used to connect to the SharePoint server. This user will be added to the sites collection administrators (for the Set-COVEOSPOMySitesOwner cmdlet) or the personal sites administrators (for the Set-COVEOSPOSitesAdmin cmdlet) if the NewAdminUsername parameter is empty.
✓ ✓ AdminPassword
Specifies the password of the SharePoint Online global administrator used to connect to the SharePoint server.
✓ ✓ UsersDomainName
Specifies the domain of the users from which to retrieve personal sites.
✓ Specifies the username of one or more SharePoint Online users and/or group(s) to be added in the sites collection administrators (for the Set-COVEOSPOMySitesOwner cmdlet) or the personal sites administrators (for the Set-COVEOSPOSitesAdmin cmdlet). If not set, the user specified in the AdminUsername parameter will be added.
Notes:
-
You can add user and group at the same time by separating values with comma.
Example: -NewAdminUsername "user1@domain.com","user2@domain.com","c:0-.f|rolemanager|s-[accountNumber]"
-
You must find the group ID to add the associated users in the sites collection or personal sites administrators (see To find a SharePoint group ID).
✓ ✓ Remove
This parameter is a switch that, when included in the script, removes the user(s) and/or group(s) specified in the NewAdminUsername parameter (instead of adding them) from the sites collection administrators (for the Set-COVEOSPOMySitesOwner cmdlet) or the personal sites administrators (for the Set-COVEOSPOSitesAdmin cmdlet).
✓ ✓ Examples:
-
$> Set-COVEOSPOMySitesOwner -AdminSiteUrl https://acme-admin.sharepoint.com -AdminUsername admin@acme.onmicrosoft.com -AdminPassword password -UsersDomainName acme.onmicrosoft.com
-
$> Set-COVEOSPOSitesAdmin -AdminSiteUrl https://acme-admin.sharepoint.com -AdminUsername globaladmin@acme.onmicrosoft.com -AdminPassword password -NewAdminUsername "user@acme.onmicrosoft.com", "c:0-.f|rolemanager|s-1-5-21-2644810858-3409521387-2709630237-4818302"
-
-
If not already done, repeat the procedure to add the Owner permission using SharePoint Online admin center to the group, but without performing the last step.
-
In the site collection owners panel, access the source code of the page by pressing F12 or by right-clicking, and then selecting Inspect (Google Chrome) or View Page Source (Firefox).
-
In the window that appears, in the source code, prior to displaytext='GroupName', copy the value of the key parameter (key='GroupID').
You can now paste the group ID in the NewAdminUsername parameter to add/remove the group members in/from the sites collection or personal sites administrators.