In this post I’m going through the steps to update SharePoint Item-level permissions using Power Automate and The SharePoint Rest API.

Default settings for SharePoint Item-Level Permissions
Default settings for SharePoint Item-Level Permissions

Item-Level Permissions

Within the Advanced settings of a SharePoint list, the Item-Level Permissions the default settings are Read all items and Create and edit all items. You might however sometimes want to switch this to Read items that were created by user and Create items and edit items that were created by the user.

Adjusted settings for SharePoint Item-Level Permissions
Adjusted settings for SharePoint Item-Level Permissions

Using the SharePoint UI this is easy to update, but what if you want to update this as part of a site template.

Now I found a way to do this using PowerShell, but I really wanted to do this using Power Automate. Using out of the box Power Automate action, I can avoid the complexity of Azure Automate/Functions.

REST API for Item-Level Permissions

So now if we want to do the same in Power Automate then we can do this using the following flow settings:

A flow in Power Automate to change the Adjusted settings for SharePoint Item-Level Permissions
A flow in Power Automate to change the Adjusted settings for SharePoint Item-Level Permissions
Method: PATCH
Uri: /_api/web/lists/getbyTitle('Listname')
Accept: application/json; odata=nometadata
Content-type: application/json; odata=nometadata
IF-MATCH: *
Body:  {
            "ReadSecurity": 2, 
            "WriteSecurity: 2
       }

So with a simple REST API call in Power Automate we can update those advanced settings in SharePoint Online.


Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe to get the latest posts to your email.

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using [email protected]

Leave a Reply

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

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue reading