Before you can configure Exchange Online via API, the following is required:
- Global Administrator role must be assigned to the user used to enable the API. Learn more about Office 365 roles.
- Enable audit logging for mailbox activities. Although Exchange Admin Center activities are monitored by default, you must manually enable auditing for user mailboxes. Learn more about how to enable mailbox audit logging.
If you receive errors when you enable mailbox audit logging, make sure all of the PowerShell prerequisites are met, as described in this Microsoft TechNet article.
Alternatively, you can also use the method Custom oAuth Application for Office 365 API Integration to authenticate MVISION Cloud to Exchange Online / Office 365. This method is often used in production deployments or larger organizations. In POCs or smaller deployments, it may be easier to use a Global Admin Account to authorize MVISION Cloud.