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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "Stop sharing an item ...
Power Automate
Unanswered

"Stop sharing an item or a file" - "List file or library name" not found

(1) ShareShare
ReportReport
Posted on by 2
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 folders but without success. I would like 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
 
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
    hi
     
    Pretty please use carriage returns :-(.
     
    Share all the links fully and (cross out your initial part of the url) so we don't see the unv part, the rest is not a problem really unless its confidential folder names, as without the Host, the url is just a string we can help verity
  • MC-12021345-0 Profile Picture
    2 on at
    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.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard