Forum Discussion

fhunth's avatar
fhunth
Copper Contributor
Jun 10, 2020

Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?

Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?

The Powershell command Get-SPOSite gets all sites on my Office 365 tenant. How could I filter all site with a sensitivy label?

5 Replies

  • Use a filter against the SensitivityLabel property? It has to be a client-side filter though, via where-object, as the -Filter parameter doesn't seem to support the SensitivityLabel property.

    • fhunth's avatar
      fhunth
      Copper Contributor
      I get this column with blank values. Get-SPOSite | select Url, SensitivityLabel 
      Url SensitivityLabel
      --- ----------------
      https://mycompany.sharepoint.com/sites/Test4531
      https://mycompany.sharepoint.com/sites/TestSensi
      https://mycompany.sharepoint.com/sites/Test41