Microsoft Graph API and Office365 Management API for Azure AD

Nikita Krivets 491 Reputation points
2020-01-13T10:55:58.483+00:00

Hello,

There are two APIs: Microsoft Graph API and Office365 Management API.

Both of these APIs can provide the same information regarding Azure AD audit log events.

For Office365 Management API:

According to the documentation: https://learn.microsoft.com/ru-ru/office/office-365-management-api/office-365-management-activity-api-reference

Content type: Audit.AzureActiveDirectory;

That is how we can get our events: starting subscription and so on.

For Microsoft Graph API:

https://graph.microsoft.com/v1.0/auditLogs/directoryAudits

Microsoft Graph API can get audit log events only from Azure AD, but Office365 Management API can get some data even regarding Exchange.

So, how should I prioritize these APIs? Is there any way to get Exchange events in Microsoft Graph API? Is it going to be implemented any time soon?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,451 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shashi Shailaj 7,606 Reputation points Microsoft Employee
    2020-01-13T13:59:01.957+00:00

    The prioritization would depend upon your requirements. We are trying hard to bring parity between the Microsoft Graph API and other earlier APIs. The O365 Management API was created earlier and is still used for multiple O365 operations. You may find that some Exchange online related operations are not similarly present in the current Graph API v1 just the way they are in O365 management APIs .

    Please check out the Office 365 Usage Reports in Microsoft Graph API . You can get Outlook activity and mailbox usage details. I am not sure what your requirement is but you can mix and match these activity reports with the Outlook Mail REST API and obtain a lot of operational activity information for any particular user.

    The beta version of the Microsoft Graph API will slowly unify all the services under one API umbrella and will be more extensive. While I encourage you to check it out , I would suggest not to use it in production . In case the information provided in this post helps , please do mark it as answer so that it is helpful for other users searching for similar queries.

    We do not have a timeline on this as of now as to when we will have ability to get all kinds of exchange events as you see in O365 management API but you can track the change-log for the API and find any new changes as they happen. In case you have any suggestions , I would request you to post the same on Microsoft Graph Feature requests feedback site or up-vote if you find a similar request there. This is periodically reviewed and prioritized accordingly by the product group.

    Thank you.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Peter Lacis 1 Reputation point
    2021-01-15T22:54:29.71+00:00

    As a year has passed since this post was first made, what is the current recommendation from Microsoft about utilizing the Graph API in production? Akin to the original post, I am interested in ensuring M365 audit log data that is available via the Office365 Management API is currently available via the Graph API.

    0 comments No comments

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.