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.


Thank you in advance!