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

  • Question

  • n The Security & Compliance center (protection.office.com), 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? 

    OR
    Is there any other way of achieving this?

    Thanks.

    Wednesday, July 11, 2018 7:53 AM

Answers

  • The answer was to use the following powershell cmlet to do what i need... https://docs.microsoft.com/en-us/powershell/module/exchange/policy-and-compliance-retention/set-retentionpolicy?view=exchange-ps


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