There is an API that can retrieve all emails from shared mailbox https://graph.microsoft.com/v1.0/users/{sharedmailboxmailaddress}/messages. However, I am not sure if this can take filter criteria to refine the messages that match certain criteria? for Eg. only pick messages that are received from a specific mail address https://graph.microsoft.com/v1.0/users/{sharedmailboxmailaddress}/messages?$filter=sender/emailAddress/address eq ‘[email protected]’
I haven’t setup a sandbox to run this query,but trying to understand conceptually. Appreciate if anyone has tried this scenario to confirm
user25922076 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.