Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

View Only File withing View/Edit Folder

(0) ShareShare
ReportReport
Posted on by 27
I'm trying to use PA to create a public drop box folder with files within which are view only. ie people can add files to the folder, but then their permission is taken away and they can only view that file, but can continue to add documents.
I am creating a view/edit sharing link for the folder.
Then using HTTP request, breaking inheritance on the file. (I'm not sure if the 'stop sharing' Action is the same)
Then creating a view only sharing link for the file.
However, if i send the Folder link, the file is still view/edit. If it send the file link, it's view only. If that person then opens the folder link AFTER opening the file link, that file is successfully view only. But that is too many steps.
 
How can i allow people with the folder view/edit link to view only the files inside it?
I imagine i want to be able to 'shre everything in this folder even with unique permissions? but I cant.
 
I do have 'anyone with the link can view' permission to share. 
 
I have no idea how to get this to work.
 
  • adriennevh Profile Picture
    adriennevh 27 on at
    View Only File withing View/Edit Folder
     
    The central drop box is an option for sure, but because we're dealing with external vendors, hoping their nomanclature will be consistent is going to be challenging.  
    I'll look into the Per Flow license. Currently I have a service account creating both the folder link and the file link, and it's not working properly.
     
    Unfortunately, we do require the link as it's going to be shared with external vendors who we dont want to require to have accounts, and we dont know which vendor it will be shared with. These are translaltion tickets, and our team has multiple vendors we use to get the jobs done. 
     
    Right now, i'm thinking of checking out the document instead of changing the permissions. I will set the folder to View/Edit and check out the file. This will functionally do the same, preventing edits, but allowing download and new documents to be added.
  • View Only File withing View/Edit Folder
    One option would be to use a per Flow license and have a service account with higher permissions create the folder.  Then you don't have to break down the folder permissions or worry about which version of the link they have.  
    Potentially, the users upload to specified folder, which triggers the flow and moves the folder to the correct desired location with the desired permissions, then deletes the original location.  You could even send an email with the link to the new folder (if desired).
  • Suggested answer
    Pstork1 Profile Picture
    Pstork1 64,741 on at
    View Only File withing View/Edit Folder
    The problem is that the Stop Sharing and Create a Sharing Link doesn't actually change the item level security.  To do what you want you need to do everything using HTTP REST calls.
     
    1) Break Security Inheritance and don't replicate permissions.
    2) Set Item Level permissions for the person or Group to View Only permission level.
     
    This is the HTTP REST call for setting Read Only permissions
     
    You don't need the sharing link at all.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard