cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
geemadhas
Regular Visitor

SharePoint Trigger "Stop sharing an item or a folder" gives forbidden error

As provided in other blogs, is this feature not supported yet from MS Flow to SharePoint? If yes, what is the alternative approach to stop sharing a folder to set of users?

5 REPLIES 5
ScottShearer
Super User III
Super User III

@geemadhas 

Stop Sharing an item or folder is available currently.  I just tested and had success.

StopShare.jpg

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

I tested it again and i got the same error. I am trying at Account level (Dynamics 365 entity). I tried to change account to Documents (referring your screenshot) and I got bad gateway error. Forbidden.png

@geemadhas 

In the Stop sharing action, you should be referencing the Id column vs ItemId.

You may have other issues as well - you may want to look at the output of the Compose action.  See if it matches what is generated if you manually select a file or folder.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-litu-msft
Community Support
Community Support

Hi @geemadhas,

 

Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

DanyElHoyek
Advocate III
Advocate III

Same issue. Stop Sharing an item or a folder is always failing with a forbidden error.

 

The alternative is to use Send HTTP request to SharePoint as following:

FlowUniquePermissions.png

 

_api/lists/getByTitle('ListTitle')/items(ItemId)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,361)