question

ox1ygen avatar image
0 Votes"
ox1ygen asked ·

Microsoft Graph API and Office365 Management API for Azure AD

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://docs.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?

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShashiShailaj-MSFT avatar image
1 Vote"
ShashiShailaj-MSFT answered ·

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.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.