Export (0) Print
Expand All

Remove recommendation Web Parts from My Sites in SharePoint Server 2013

SharePoint 2013
 

Applies to: SharePoint Server 2013 Standard, SharePoint Server 2013 Enterprise

Topic Last Modified: 2013-12-18

Summary: Learn how to remove the Suggested sites to follow and Suggested documents to follow Web Parts in SharePoint Server 2013.

In SharePoint Server 2013, My Sites include Web Parts to display recommended sites and documents for users to follow. These Web Parts are called Suggested sites to follow and Suggested documents to follow. The information in these Web Parts originates from the search index. If you have not configured indexing on your farm, the Web Parts will not display anything. The recommendations for Suggested sites to follow and Suggested documents to follow are influenced by:

  • People, sites, and documents you already follow.

  • A site that is followed by many people.

  • The values of the Ask Me About and Followed #Tags properties on the user profile.

  • Any documents that you recently modified.

  • Sites followed by people that you follow.

NoteNote:
If users do not update their user profile settings, documents viewed recently by three or more people are recommended to the user.

Depending on your company's policies and procedures, you may not want recommendations made to users about which sites and documents they should follow. An administrator cannot turn off the recommendations feature on the My Site. Instead, an administrator must remove the Suggested sites to follow and Suggested documents to follow Web Parts from the My Site.

NoteNote:
All recommendations made in the Suggested sites to follow and Suggested documents to follow Web Parts are security trimmed.

Use the following procedure to remove the Suggested sites to follow Web Part from a user's My Site.

To remove the Suggested sites to follow Web Part from a user's My Site:
  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 Windows PowerShell cmdlets.

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

    NoteNote:
    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.
  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, enter the following command:

    Add-PsSnapin Microsoft.SharePoint.PowerShell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.WebPartPages")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Publishing")
    
    $useraccount = "useraccount"
    $url = "http://" + [System.Net.Dns]::GetHostName() + "/my/personal/" + $useraccount
    $site = get-spsite $url
    $web = $site.RootWeb
    $pageUrl= "Social/Sites.aspx"
    $webPartManager =  $web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared);
    $webPart = $webPartManager.WebParts | where-object { $_.WebBrowsableObject.GetType().Name -eq "ProjectSearchBrowseWebpart" }
    
    if($webPart -ne $null)
    {
        $webPartManager.DeleteWebPart($webPart)
    }
    $web.Update();
    

    Where:

    • $useraccount is set to the user's Active Directory account name for the user whose My Site the Web Part is being removed from.

Use the following procedure to remove the Suggested documents to follow Web Part from a user's My Site.

To remove the Suggested documents to follow Web Part from a user's My Site:
  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 Windows PowerShell cmdlets.

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

    NoteNote:
    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.
  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      • On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, enter the following command:

    Add-PsSnapin Microsoft.SharePoint.PowerShell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.WebPartPages")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Publishing")
    
    $useraccount = "useraccount"
    $url = "http://" + [System.Net.Dns]::GetHostName() + "/my/personal/" + $useraccount
    $site = get-spsite $url
    $web = $site.RootWeb
    $pageUrl= "Social/FollowedContent.aspx"
    $webPartManager =  $web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared);
    $webPart = $webPartManager.WebParts | where-object { $_.WebBrowsableObject.GetType().Name -eq "ProjectSearchBrowseWebpart" }
    
    if($webPart -ne $null)
    {
        $webPartManager.DeleteWebPart($webPart)
    }
    $web.Update();
    
    
    

    Where:

    • $useraccount is set to the user's Active Directory account name for the user whose My Site the Web Part is being removed from.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft