Set Default Sensitivity label on library

How to set an existing Microsoft Purview sensitivity label as the default label on a SharePoint Online library using a Power Automate flow.




Screenshot with example

Sample data
ListName – HR Policies
DefaultSensitivityLabelForLibrary – 67ace81e-bd8a-49fa-95f7-2959a84d4a6c


Copy/paste example


Add a sensitivity label to SharePoint document library
Configure a default sensitivity label for a SharePoint document library

That’s it, Happy testing!

You may also like...

2 Responses

  1. Rituparna Khatua says:

    Hi Dennis,
    I was trying the method. However I am getting Bad Gateway error in HTTP request.
    Can you please share insights over the same if you have any.

  2. Dennis says:

    Hi Rituparna,

    This comment section is a bit limited to troubleshoot. My suggestion would be to create a thread on the Power Users forum:

    This way I or somebody else can help out. Over there it is easy to attach screenshots or place code snippets. That is probably the quickest way to solve your issue.

    Also make sure you place the link to that thread over here in a new comment, to make me aware of your issue.

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.