Best way to get list of files in Sharepoint whose permissions were updated

User3 45 Reputation points
2025-01-11T16:21:52.06+00:00

Hi I am using MSFT Graph API to download files from Sharepoint. I am using the delta API to only get the list of files updated since my last run.

It looks like if only the permissions for a file are updated, then the file is not included in the delta feed. Is this correct? If yes, what is the best to get the list of files whose permissions were updated since my last run?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,954 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,249 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 49,841 Reputation points Microsoft Vendor
    2025-01-13T08:57:08.2933333+00:00

    Yes, if only permissions for a file are updated, the file will not be included in the delta feed.

    To track permission changes for a file, the best way is to use audit logs.

    Go to Microsoft Purview portal -> Audit -> Search -> Sharing and access request activities -> Choose permission activities you want to track.

    1


    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.


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.