Hello and thanks.
Sorry, but I have never needed to participate in a community to solve a problem, so I am not familiar with the rules of etiquette.
I'll repost the entire message with the corrections you requested (I hope I got them right).
P.S. I couldn't find the section with the community rules. Could you kindly point me to where I should look?
Reposted message with corrections:
“Good morning,
Searching the community I didn't find a suitable answer so I'm writing to get help with a Power Automate flow that removes OneDrive permissions for sharing folders.
The removal is necessary because the users vary periodically and therefore it is necessary to avoid mixing in the use of the folders.
I have a system that, using an Excel file and VBA instructions, starts a flow that creates sharing links (can modify) for selected folders, transcribes them in the Excel sheet and through VBA I distribute them to users identifiable by their email address.
The flow works with the “Create share link” action for one drive and so I have no problems. The problem arises for removal since OneDrive does not have a specific action.
I then tried with SharePoint actions “Stop sharing an item or a file” and “Send an HTTP request to SharePoint” but both did not find the Documents library where I have the folders that interest me.
However, the same library is found with the SharePoint actions "List folder" and "Get folder metadata" by inserting the site address as a custom value to demonstrate that the folders exist, that the address is correct, and that SharePoint can identify them.
In the actions to remove sharing he tried adding the library as a custom value as both “Documents” and “/Documents”.
I also tried to insert dynamic values obtained from “Get folder metadata” and using only files and not foldersbut without success.
I would lik
e to add that I do not have permission either as an administrator or for the Graph API.
The question is: do I need additional permission or am I the one who can't configure the flow?
Thanks in advance and have a nice day”
Following this, I will also attach the requested images.