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.
Asked
Active
Viewed 1,381 times
1 Answers
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