Update Sensitivity Label on Communication Site

How to update the sensitivity label setting of a SharePoint Online communication site using a Power Automate flow.




Screenshot with example

Sample data
Classification – Highly Confidential
SensitivityLabelId – 5e06f0a7-9d7b-4dfe-bc22-bb1a43a1ff46


Copy/paste example


SP.Site Object

That’s it, Happy testing!

You may also like...

2 Responses

  1. Simon Wraith says:

    Hi Dennis

    Thanks for this guide, much appreciated.

    I’m just checking the best way to retrieve the Sensativity Label ID?


  2. Dennis says:

    Hi Simon,

    Do you want to retrieve it manually or do you mean from within a Power Automate cloud flow?

    For the manual scenario you can go to Purview click on the sensitivity label to see the details you want to use and find the id in your Network tab of the Developer toolbar. There should GET request with an URL like:
    https://compliance.microsoft.com/apiproxy/di/find/Label?tenantId=yourtenantid&filter=Identity eq ‘5e06f0a7-9d7b-4dfe-bc22-bb1a43a1ff46’

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.