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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow to change the per...
Power Automate
Answered

Flow to change the permission from contribute to read-only

(0) ShareShare
ReportReport
Posted on by 240

Hi All,

 

I have requirement to design a flow which will change the permissions of all the security groups present inside the folder to read/view only.

Currently I have a folder "A" which has 3 security groups :

Security group 1---Full control

Security group 2---Contribute

Security group 3---Contribute

Now I want to create a flow which will change these 3 permissions to View only

Security group 1---Read

Security group 2---Read

Security group 3---Read

 

Please help!!

 

 

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @PowerUser0 you can use "Grant access to an item or a folder" action and do this. Check this out 

     

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Power-Automate-and-SharePoint-Permissions/ba-p/656216

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • PowerUser0 Profile Picture
    240 on at

    Hi @jinivthakkar ,

     

    No its not working I tried that.

     

  • PowerUser0 Profile Picture
    240 on at

    Hi @jinivthakkar 

     

    This is not working for me because I do not know the the names of security groups so I can not enter anything in recipient column, I want that flow should find out what all security groups are present in the folder and change there permission level to View only

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at

    @PowerUser0 this end point will give you all principal ids of groups and users

     

    _api/lists/getByTitle('DISPLAYNAME)/items(ITEMID)/roleassignments

    Example

    _api/lists/getByTitle('Documents')/items(42)/roleassignments

     

    Get group name and pass it to change permission action

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • jinivthakkar Profile Picture
    4,187 on at

    @PowerUser0 break inheritance and assign read permissions, no need to get group name

    jinivthakkar_0-1623417771213.png

     

    https://powerusers.microsoft.com/t5/Building-Flows/Folder-Permissions/m-p/880255

     

    Full Control------1073741829

    Design-----------1073741828

    Edit---------------1073741830

    Contribute-------1073741827

    Read-------------1073741826

    View Only--------1073741924

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

     

  • PowerUser0 Profile Picture
    240 on at

    Hi @jinivthakkar 

    Thanks for your help! it works for me!

    But I also used Parse json which will filter out the principle id's of all the security groups.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard