SharePoint -Automate to lock the files for certain point of the day

Rachana Dhoot 20 Reputation points
2024-08-02T12:39:25.63+00:00

I have few files uploaded on SharePoint . They get refreshed every day at 7.00 AM in the morning. But if someone has any file opened on their computer then my upload gets failed. How to lock or close the files that are open on any computer. IS it possible. Or is there a workaround ?

Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2024-08-05T05:52:44.8266667+00:00

    Hi @Rachana Dhoot,

    Thank you for posting in this community.

    There is no ability to lock files in SharePoint. The only way we can prohibit a user from opening a file is to remove the user's access.

    Therefore, we have an alternative solution that may solve your problem. We can remove the user's permissions first and use Power Automate to create a flow to give the user access to the file again after the file has been uploaded.

    So, a flow may could meet your requirement, like these threads in Microsoft Power Automate Community: Set SharePoint Folder Permissions with SharePoint Groups, Assigning Folder permissions to an office 365 Group. So, we suggest you could also post your query in Microsoft Power Automate Community to see if the members and engineers in this community could help you create a flow for your requirement.

    Hope this information is helpful to you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.