Forum Discussion

ellan1537's avatar
ellan1537
Iron Contributor
Dec 22, 2023

Enabling Sensitivity Label PDF Support for SharePoint Online

Sharepoint Online doesn't show sensitivity labels in the column "sensitivity" in PDFs, however, for office Apps it does.

 

Trying to run the below, but it is throwing error.

Set-SPOTenant -EnableSensitivityLabelforPDF $true

 

Error: Set-SPOTenant : A parameter cannot be found that matches parameter name 'EnableSensitivityLabelforPDF'.

 

  • Reinstalled the module. I had to do this on my machine when trying PowerShell 7.
    I had to run the uninstall (uninstall-module Microsoft.Online.SharePoint.PowerShell) both in PowerShell 7 and 5.

    Followed below steps and that it resolved the issue.
    -remove-module
    -uninstall-module Microsoft.Online.SharePoint.PowerShell
    -install-module Microsoft.Online.SharePoint.PowerShell

    Then I was able to find the attribute "-EnableSensitivityLabelforPDF" and the script successfully executed.
  • ellan1537's avatar
    ellan1537
    Iron Contributor
    Reinstalled the module. I had to do this on my machine when trying PowerShell 7.
    I had to run the uninstall (uninstall-module Microsoft.Online.SharePoint.PowerShell) both in PowerShell 7 and 5.

    Followed below steps and that it resolved the issue.
    -remove-module
    -uninstall-module Microsoft.Online.SharePoint.PowerShell
    -install-module Microsoft.Online.SharePoint.PowerShell

    Then I was able to find the attribute "-EnableSensitivityLabelforPDF" and the script successfully executed.

Resources