I'm calling https://graph.microsoft.com/v1.0/users/{user_id}/messages/
to paginate through all user messages. I'm using app permissions for access, which works fine.
But I'm getting more messages than expected, and I'm not sure why. Is it possible the /messages
endpoint includes messages from shared mailboxes available to user_id
, too?
If so, what is the way to suppress that? Thanks.
From Microsoft's Known Issues page:
So the solution is to ignore all messages with
subject == "IM"
.