Dela via


Verify each User Profile service application has a My Site host configured (SharePoint Server)

APPLIES TO: yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

Rule Name: Verify each User Profile service application has a My Site Host configured.

Summary: Without a My Site host, end-users are not able to use personal sites or people profiles. Therefore, we recommend that if you create a User Profile Service service application, you also create a My Site host for the User Profile Service.

Symptoms: My Sites and other people profile features are not available to users.

Cause: The administrator who created the User Profile Service service application did not also create a My Site host.

Resolution: Verify that a My Site site collection has been created

Resolution: Associate the My Site host with a User Profile Service service application by using Microsoft PowerShell

  1. Verify that you have the following memberships:
  • securityadmin fixed server role on the SQL Server instance.

  • db_owner fixed database role on all databases that are to be updated.

  • Administrators group on the server on which you are running the PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

    Note

    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  1. Start the SharePoint Management Shell.

  2. At the PowerShell command prompt, type the following command:

    Set-SPProfileServiceApplication [-Name <UserProfileServiceApplicationName>] -MySiteHostLocation <URL>
    

    Where:

    • <UserProfileServiceApplicationName> is the friendly name of the User Profile Service service application. If you only have one User Profile Service service application, you do not need to specify the name.

    • <URL> is URL of an empty site collection that has no templates associated with it.

See also

Other Resources

Set-SPProfileServiceApplication