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 / Share Sharepoint file ...
Power Automate
Unanswered

Share Sharepoint file link as "Can't download"

(1) ShareShare
ReportReport
Posted on by 3
In my flow, I create a folder in my Sharepoint Site and I want to share the file (by link) to someone.
I know that, in Sharepoint, you can share a file/folder as "Can't download". However, the Sharepoint action "Create sharing link for a file or folder" seems to only accept as Link Type "View and edit" and "View only". 
 
Is there a way to set a "Can't download" in the action to prevent people to download the shared folder?
 
Thank you.
Categories:
cant-download.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    As you posted, the current options for sharing links are view and edit, or view only. The view permission allows downloads. You would need to grant read permissions, which prevents download of certain file types including all standard Office 365 files and pdf files. You may need to do what is outlined in the following link and apply a sensitivity label to the file to block it from being downloaded: Apply SharePoint Site Block Download Policy with Labels.
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    What you could try: ( it's better/easy to manually configure it if not many).
     
    1. Send an http request to Sharepoint, use GET method. For example below one in Documents, 
    Uri=_api/web/lists/getbytitle('Documents')/items(<item_id>)/RoleAssignments
    2. from step one, it will lead you to get some attributes you have to consider, for example, 
    1.  Principal ID, Member .
    2.  Principal ID, RoleDefinitionBindings.
    3.  SiteGroups, Group  , e.g : _api/Web/SiteGroups
    4.  SiteGroups, Users, e.g : _api/Web/SiteGroups/GetById(19)/Users
    3. when you figure out, then create an user group,  add a test user as a member of the group, manipulate those IDs.
    4. share the link to the group, choose 'Can't download'. ( this is the easiest way to do).
    5. then you can use GET to obtain those IDs.
    6. Send an http request to Sharepoint, use PATCH for updating.
     
    good luck.
     

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