Microsoft Graph API / C# (.NET) Version of Office 365 Audit Log (compliance center)?

Ward Horsfall 101 Reputation points
2022-02-08T17:10:24.177+00:00

Hi,

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

Search-UnifiedAuditLog
https://learn.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog?view=exchange-ps

I would like to be able to use an API to do the "Run an audit log search" via Microsoft Graph or a C# Api.

Thanks,

Ward

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JanardhanaVedham-MSFT 3,536 Reputation points
    2022-02-08T21:05:24.337+00:00

    Hi @Ward Horsfall ,

    Currently Microsoft Graph supports the below Azure AD activity logs or audit logs APIs and you can only be able to apply filter OData parameter with these APIs.

    GET tenant user activities : https://graph.microsoft.com/v1.0/auditLogs/directoryAudits
    GET tenant user sign-ins : https://graph.microsoft.com/v1.0/auditLogs/signIns
    GET provisioning logs : https://graph.microsoft.com/v1.0/auditLogs/provisioning

    In addtion to this, presently the below Microsoft Graph compliance and privacy APIs are available. The Microsoft Graph compliance and privacy APIs can be used to build applications that:

    1. Create and manage subject rights requests
    2. Automate common tasks in eDiscovery (currently this is only available in Beta API)

    You can also refer below documentation on Microsoft Graph compliance and privacy APIs for more information :

    V1.0 API : https://learn.microsoft.com/en-us/graph/api/resources/complianceapioverview?view=graph-rest-1.0
    Beta API : https://learn.microsoft.com/en-us/graph/api/resources/complianceapioverview?view=graph-rest-beta

    Note: APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

    Hope this helps.

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

    0 comments No comments