1

With Office 365. I would like to know how I can obtain a file, or list of all user's unread e-mail count, not necessarily the detail. I understand this is a moving target. I'm fine with that. I'm comfortable with PowerShell, but not an expert. If not an answer, please point me in the right direction.

DavidPostill
  • 162,382
DLM_SAVA
  • 101
  • 1
  • 5

1 Answers1

1

The current way to do this is via the MS Graph api. There are PS modules that make it easier like Microsoft.Graph. A good place to start is with a request like:

https://graph.microsoft.com/v1.0/users/{UserId}/mailFolders/Inbox/messages?$filter=isRead ne true&$count=true
Cpt.Whale
  • 10,914