Security & Compliance > Data Governance > Programmatically apply labels and policies to SharePoint site collections RRS feed

  • Question

  • n The Security & Compliance center (, we are able to setup new Labels and Retention policies. We may then apply these labels to individual site collections.

    I would like to apply Labels to site collections programmatically ,  i.e. via a Microsoft Public API, and not the Security & Compliance user interface.

    I can see that the Security & Compliance UI makes HTTP calls to an API, however, I am reluctant to use this, as I cannot find any documentation.

    Do you support this API? 

    Is there any other way of achieving this?


    Wednesday, July 11, 2018 7:53 AM


  • The answer was to use the following powershell cmlet to do what i need...

    • Marked as answer by mjashanks Monday, July 23, 2018 12:58 PM
    Monday, July 23, 2018 12:58 PM