3

I am trying to collect mail statistics across multiple users in my organization. Ideally I would like to build a service or a daemon that uses the Notification API's, to receive notification whenever a user in the organization receives a mail in his or her inbox.
However it seems from the documentation that the "notification API requests are always performed on the behalf of the current user".

How can a background service get notifications about another user's mailbox events?

fitzc
  • 31
  • 3

2 Answers2

2

Target user

The Notifications API requests are always performed on behalf of the current user.

As the document pointed that the Outlook notification API doesn’t support the daemon service at present. You may consider to use the Message Tracing to see whether it meets your business requirement.

And if you want the Outlook REST API to support for daemon service, you can try to submit the feedback from here.

Community
  • 1
  • 1
Fei Xue
  • 14,369
  • 1
  • 19
  • 27
  • 1
    Thanks!, The [Mail API](https://msdn.microsoft.com/office/office365/api/mail-rest-operations) document states the same that "The Mail API requests are always performed on behalf of the current user", but a service using client credential flow can get [permissions](https://msdn.microsoft.com/en-us/office/office365/howto/application-manifest) to read user mailboxes. I am wondering if there is a way to get notifications as well. I will leave the feedback. – fitzc May 04 '16 at 17:15
1

Yes, you can use App-Only to subscribe to notifications for mailfolders/inbox/messages on multiple mailboxes.
However, you will need a subscription per mailbox and you will need to manage all these subscriptions.