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 / flow for sharing files...
Power Automate
Unanswered

flow for sharing files on sharepoint security check

(0) ShareShare
ReportReport
Posted on by 2

Hi All, 

 

I created a solution to share SharePoint file with a person based on the file name. I want a person to see only files shared with him/her. Could you please have a look and advise if this is secure enough for sharing confidential documents?

There will be only me who have access directly to the SharePoint site, sharing is disabled. Is there anything else I need to think about? 

 

Flow steps:

1. Flow is triggered when a new file is uploaded to SharePoint. Each file has the following naming "Statement_June - Name.Surname.pdf"

2. "Initialize variable" step is used to create an email from "Name.Surname" part.

3. Update an email column with the variable value using "Update file properties" connector.

3. "Stop Sharing an item or a file" connector is used to remove all the existing accesses. 

4. "Grant access to an item or a folder" connector gives access to a person based on the email column. 

 

 

flow - 1.PNGflow - 2.PNG

 

Thank you in advance!

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @antonsytnyk 

    How do you plan to handle permissions later on, especially considering that you're currently addressing permissions only during the creation stage?

    Could you simply create a view in the document library Created By=[Me]

     

     

     

  • antonsytnyk Profile Picture
    2 on at

    @SudeepGhatakNZ 

    I thought that I don't actually need to manage those permissions at all. One file needs to be shared only with a specific person, and it happens by Power Automate flow when a file is created. There will be a file for each month, so the person will see multiple files created specifically for him/her.

    From what I understand I don't need to manage any permissions later. I will have access to everything since I am SharePoint owner, specific people will have files created for them and that's all.

    Is something wrong with this? 

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard