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 / Remove permissions fro...
Power Automate
Unanswered

Remove permissions from list item - without creator

(0) ShareShare
ReportReport
Posted on by

Hello all,
I have a flow to remove permissions on a list on a SPO page.
This also works without any problems.

 

After the rights are removed, the user who is in the list under "UnitHead" gets permissions set again.
This also works.

 

Now, in addition to the UnitHead, another entry in the list should also get permissions again.
Only, how do I do that?

 

If I simply write everything twice in a row, I get an error when saving.

Can for example 2 users be entered in the entries, where now only one, the UnitHead, is in it?

 

Send an HTTP request to SharePoint - Get User List - UnitHead

Method: get
Uri: _api/web/lists/getByTitle('Holiday_Test')/items(@{triggerOutputs()?['body/ID']})?$select=UnitHead/Id&$expand=UnitHead

 

Send an HTTP request to SharePoint 2 - POST - UnitHead

Method: post
Uri: _api/lists/getByTitle('holiday_test')/items(@{triggerOutputs()? ['body/ID']})/roleassignments/addroleassignment(principalid=@{outputs('Send_an_HTTP_request_to_SharePoint_-_Get_User_List_-_UnitHead')?['body']['d']['UnitHead']['Id']},roledefid=1073741827)

 

Thanks for your help in advance!

Categories:
I have the same question (0)

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard