Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Graph API: Get all rules for mail account

I have and admin account in Office365 with an app that's been given full access to anything exchange related. I am writing an app that has a use case where I would need to get all the Rules created in a user's mailbox. This would include things like the the rule name, the contents etc.

This would ideally include things like Active Sync settings between devices, permissions to eDiscovery mailboxes etc.

I do not see support for those in the graph API. Is there a way to get this information?

like image 738
Keshi Avatar asked Mar 13 '17 23:03

Keshi


People also ask

How do I get data from Microsoft Graph API?

Graph Explorer is a web-based tool that you can use to build and test requests using Microsoft Graph APIs. You can access Graph Explorer at: https://developer.microsoft.com/graph/graph-explorer. You can either access demo data without signing in, or you can sign in to a tenant of your own.

What is Mailboxsettings read?

ReadWrite. Allows the app to create, read, update, and delete user's mailbox settings.

Does Microsoft Graph API cost money?

Microsoft Graph Data Connect consumption charges are billed monthly on a pay-as-you-go basis. Charges are calculated using a flat rate based on the count of per-1,000 objects extracted through the connector.


1 Answers

There is no support for those advanced things in the Microsoft Graph API. You need to use Exchange Web Services (EWS) for it.

For instance you can retrieve eDiscover information and you can manage the manage inbox rules also. Check out the full reference of the EWS Managed API for a long list of things you can do.

You can use Azure AD OAuth 2.0 authentication to authorize access to EWS in Office 365 by adding the Bearer token to EWS requests.

like image 127
RasmusW Avatar answered Nov 02 '22 22:11

RasmusW