I have MS-Exchange server deployed on my server where there are different types of users (locally or hybrid). The users can be seen on admin.microsoft.com (outlook admin panel) but when I try to access the mailbox of users which are locally saved, an error I am getting in response of the GRAPH API -
{
"error": {
"code": "MailboxNotEnabledForRESTAPI",
"message": "REST API is not yet supported for this mailbox."
}
}
And also, Is there any way that I can search mails in all user's mailbox at once. I found something regarding this "Message Trace", available in outlook admin panel (API -https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace) which do the work for me but it requires Basic Auth implementation which I don't want to do. I want to authorize the API request using Oauth access token. Is there any way?
Any help will be really appreciated.
Thanks In Advance