Product DocsMenu

Coveo Platform 7.0 >
Administrator Help > Third-Party System Procedures > Microsoft SharePoint > Adding the Personal Sites Collections Owner Permissions for SharePoint Online

Adding the Personal Sites Collections Owner Permissions for SharePoint Online

You must make the crawling account an owner of all the personal sites collections when you want to index SharePoint Online personal sites and user profiles. The crawler will only be able to index content from a personal site if the crawling account is an owner of this personal site, other personal sites for which it is not an owner will be ignored.

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

  1. Access SharePoint Online administration center (https://your_domain-admin.sharepoint.com).

  2. In the navigation panel on the left, click user profiles.

  3. Click Manage User Profiles.

  4. Use the search box to find the user profiles of the users you want to crawl.

  5. Right-click an Account Name and then select Manage site collection owners.

  6. Add the crawling account to the list of Site Collection Administrators.

  7. 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.

  1. Install SharePoint Online management shell (see the Microsoft document Set up the SharePoint Online Management Shell Windows PowerShell environment).

  2. 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.

  3. Unzip the file.

  4. On the Windows menu select Start > All Programs > SharePoint Online Management Shell.

  5. Load the COVEOSPO.ps1 script.

    Example: $> . C:\script\COVEOSPO.ps1

  6. 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.

    AdminUsername

    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.

     

    NewAdminUsername

    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"

To find a SharePoint group ID

  1. 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.

  2. 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).

  3. 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.

People who viewed this topic also viewed