none
SharePoint Server 2013 - Is there any way to identify whether tags and notes are being used in the web application ? RRS feed

  • Question

  • Hello,

    We are in process of migrating from 2013 to 2019, although tags and notes feature has been deprecated in in SP 2019 and SharePoint online, however I require to know whether it has been used in SharePoint 2013 platform. 

    I have a web application with numerous sites where tags and notes might have been used by users. How can I be sure that it has been used by users ? Is there any way to identify whether tags and notes are being used in the web application ?

    Best Regards,


    Dipti Chhatrapati


    Tuesday, August 13, 2019 4:56 AM

Answers

  • Hi Dipti,

    You can go to Central Administration->Manage service applications->User profile service application->Manage Social tags and notes.

    Select the relevant type and URL.

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, August 13, 2019 6:48 AM
  • Hi Dipti,

    Please find the below Powershell script to get all the social tags in SharePoint 2013.

    #----------------Get the xml file--------------------------------------------------------------- 
    [xml]$xmlData=Get-Content "D:\KVNTest\RetrieveSocialTag.xml"     
     
    #----------------Retrieve Social Tag function----------------------------------------------------                  
          function RetrieveSocialTag()
          {           
                $uri = New-Object System.Uri($xmlData.SocialTag.Uri);
                $site = Get-SPSite $xmlData.SocialTag.SiteURL           
    
                ## Get the context of the service application
                $context = Get-SPServiceContext($site)
     
                ## SocialTagManager - Contains methods and properties used to manipulate social tag data
                $socialTagManager = New-Object -TypeName Microsoft.Office.Server.SocialData.SocialTagManager -ArgumentList $context
                      
                    ##GetTags(Uri) method is used to retrieve an array of SocialTag objects that are owned by the current user and that contain the specified URL.
                    [Microsoft.Office.Server.SocialData.SocialTag[]]$tags = $socialTagManager.GetTags($uri)                  
                    Write-Host -ForegroundColor Green "Tags for the URL: " $uri.AbsoluteUri
                      
                    foreach ($tag in $tags)
                    {
                        Write-Host -ForegroundColor Magenta "###############################################"
                        Write-Host -ForegroundColor Yellow " Tag Name : " $tag.Term.Name
                        Write-Host -ForegroundColor Yellow " URL      : " $tag.Url.AbsoluteUri
                        Write-Host -ForegroundColor Yellow " Title    : " $tag.Title
                        Write-Host -ForegroundColor Yellow " Owner    : " $tag.Owner.DisplayNam                 
                    }           
                      ## Dispose the site object
                      $site.Dispose()
             }
    
    #----------------Calling the function------------------------------------------------------------  
    RetrieveSocialTag


    Here is the input XML file to specify the SITE URL:

    <?xml version="1.0" encoding="utf-8" ?>
    <SocialTag>
      <SiteURL> https://contoso.com/practice/</SiteURL>
      <Uri>https://contoso.com/practice/</Uri>  
    </SocialTag>

    Create a input file and save it as "RetrieveSocialTag.xml".

    Hope this helps.

    Regards,

    Krishna

    Tuesday, August 13, 2019 2:33 PM

All replies

  • Hi Dipti,

    You can go to Central Administration->Manage service applications->User profile service application->Manage Social tags and notes.

    Select the relevant type and URL.

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, August 13, 2019 6:48 AM
  • Hi Dipti,

    Please find the below Powershell script to get all the social tags in SharePoint 2013.

    #----------------Get the xml file--------------------------------------------------------------- 
    [xml]$xmlData=Get-Content "D:\KVNTest\RetrieveSocialTag.xml"     
     
    #----------------Retrieve Social Tag function----------------------------------------------------                  
          function RetrieveSocialTag()
          {           
                $uri = New-Object System.Uri($xmlData.SocialTag.Uri);
                $site = Get-SPSite $xmlData.SocialTag.SiteURL           
    
                ## Get the context of the service application
                $context = Get-SPServiceContext($site)
     
                ## SocialTagManager - Contains methods and properties used to manipulate social tag data
                $socialTagManager = New-Object -TypeName Microsoft.Office.Server.SocialData.SocialTagManager -ArgumentList $context
                      
                    ##GetTags(Uri) method is used to retrieve an array of SocialTag objects that are owned by the current user and that contain the specified URL.
                    [Microsoft.Office.Server.SocialData.SocialTag[]]$tags = $socialTagManager.GetTags($uri)                  
                    Write-Host -ForegroundColor Green "Tags for the URL: " $uri.AbsoluteUri
                      
                    foreach ($tag in $tags)
                    {
                        Write-Host -ForegroundColor Magenta "###############################################"
                        Write-Host -ForegroundColor Yellow " Tag Name : " $tag.Term.Name
                        Write-Host -ForegroundColor Yellow " URL      : " $tag.Url.AbsoluteUri
                        Write-Host -ForegroundColor Yellow " Title    : " $tag.Title
                        Write-Host -ForegroundColor Yellow " Owner    : " $tag.Owner.DisplayNam                 
                    }           
                      ## Dispose the site object
                      $site.Dispose()
             }
    
    #----------------Calling the function------------------------------------------------------------  
    RetrieveSocialTag


    Here is the input XML file to specify the SITE URL:

    <?xml version="1.0" encoding="utf-8" ?>
    <SocialTag>
      <SiteURL> https://contoso.com/practice/</SiteURL>
      <Uri>https://contoso.com/practice/</Uri>  
    </SocialTag>

    Create a input file and save it as "RetrieveSocialTag.xml".

    Hope this helps.

    Regards,

    Krishna

    Tuesday, August 13, 2019 2:33 PM