Sharepoint Online Audit Log

Revathi Paramasivan 1 Reputation point
2020-11-19T11:46:28.673+00:00

Hello Team,

I have sharepoint online site in which needs to create audit log reports.

Can we access audit logs for sharepoint online site by using API's or CSOM? If so, what are the steps needs to follow?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,199 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,056 Reputation points
    2020-11-20T05:57:48.79+00:00

    Hi @Revathi Paramasivan ,

    As a simple way, we could use the Microsoft 365 compliance center to search the unified audit log to view user and administrator activity in our organization.

    41249-image.png

    https://learn.microsoft.com/en-us/microsoft-365/compliance/search-the-audit-log-in-security-and-compliance?view=o365-worldwide

    If you want to use code, please refer to following articles:

    https://asishpadhy.com/2019/01/16/retrieve-office-365-audit-logs-programmatically-using-office-management-api-and-azure-functions/

    https://github.com/AsishP/Office365AuditLogsAutomation

    https://asishpadhy.com/2018/12/21/retrieve-office-365-audit-logs-using-powershell-and-store-in-azure-table-for-quick-retrival/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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.