Based on the Auditlogs report how to track that the file or folder is shared with which user>

Sayantan Ganguly 80 Reputation points
2023-09-21T18:53:53.9933333+00:00

Hello Team,

I am able to extract Audit logs from compliance portal. My question is how to get the shared user based on audit logs report. I am able to get file, folder and there URL as well. from the audit logs I need to get users which is shared with respected file.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,716 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.
2,981 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 26,091 Reputation points Microsoft Vendor
    2023-09-22T06:21:29.3466667+00:00

    Hi @Anonymous ,

    To get the users which a file or folder is shared with based on the audit logs report, you can follow these steps:

    1. Search the audit log for sharing events and export the results to a CSV file.
    2. Use the PowerQuery Editor in Excel to format the exported audit log.
    3. Filter the CSV file for resources shared with external users.

    After filtering the CSV file for resources shared with external users, you can see the external user's email address in the "User" column. This email address can be used to identify the user who the file or folder is shared with.

    For more details, please refer to:

    https://learn.microsoft.com/en-us/purview/audit-log-sharing#how-to-identify-resources-shared-with-external-users

    https://learn.microsoft.com/en-us/purview/ediscovery-export-search-results?view=o365-worldwide


    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.