web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Override SharePoint Li...
Power Automate
Answered

Override SharePoint List Item Permissions

(0) ShareShare
ReportReport
Posted on by 71

Hello,

 

I have successfully created a Flow that breaks permissions and sets the user's permission to read only for certain items in a list using HTTP API call.

 

The problem is that now no one has any access to the items except for the user's read only permissions.  I am a global admin and the owner of the list with Full Control of the list and the subsite both explictly and by group membership.

 

I've rerun the HTTP API based Flow again breaking permissions and setting the new permissions for both the test user and myself but no further modification to the items is happening.

 

Is there any way to reset the permissions?

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @jarodpearcy 

     

    Try using the new MS Flow actions for setting permissions

    https://flow.microsoft.com/en-us/blog/july-updates-for-microsoft-flow/

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    The simplest way would be to run the HTTP call and re-establish inheritance of permissions for the item.  That would reset everything back to normal.  Otherwise, there are ways to give multiple users or groups permissions using the same REST calls you've already used.

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @jarodpearcy 

    Have you tried making yourself an SCA in the site collection (not a site owner)?  You can do so in the SharePoint Office 365 admin console.  As an SCA you should be able to see everything regardless of the permissions as well as reset permissions.

  • jarodpearcy Profile Picture
    71 on at

    Hello Reza,

     

    I tried your suggestion of using the SharePoint 'Grant access to an item or a folder' connector and the flow completed successfully with a Status Code of 200.  However, nothing changed.  The Recipient still has Edit permissions when set to View Only.

     

    Any idea why everything appears to work yet nothing changes?  Does inheritance need to be broken using the SharePoint connector?

     

     

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @jarodpearcy 

     

    That should grant access

    There is also a stop sharing an item or a folder, whic revokes all access to an item to all people except for Owners

    Try that first and then try grant access (assuming Flow is being run by the site Owner)

  • jarodpearcy Profile Picture
    71 on at

    Hello Scott,

     

    I discovered that I was targeting an Office 365 Group's SharePoint site and not a team site.  I've recreated the tables on a new team subsite and am trying to recreate the problem.  

    However now the API call is returning a status of insufficient permissions even though it appears to have a valid access token.

     

    Is it possible for the https://accounts.accesscontrol.windows.net/....Tenant ID..../tokens/OAuth/2 request to return a token but it not have access permissions?

  • jarodpearcy Profile Picture
    71 on at

    Okay, so you're saying if a user already has Edit permissions then setting it to Read permissions does nothing to limit permissions.  I would have to revoke all permissions and then grant Read permissions.  Is that right?

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    That is correct.  Permissions in SharePoint are always additive.  Its the sum of whatever permissions you get for that particular securable object of whatever securable object it inherits permissions from.

  • jarodpearcy Profile Picture
    71 on at

    This approach works if the Owner is excuting the flow.  However the flow is part of a PowerApp that is being executed by the user and does not have the access to reset permissions via the SharePoint connector.  

     

    It looks like the previous method of using the API Break Inheritance is the only pracitcal approach.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    If the user executing the Flow doesn't have 'Manage Permissions' permission I don't think you will find that you can do the REST call successfully.  You need to have that permission in the permission level assigned to you to be able to break inheritance and change the permission no matter how you do it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard