I'm using graph api to fetch messages.
Is there any api to get list of mailboxes shared to me(current logged in user) . currently to access messages from sharedmailbox i'm using this api https://graph.microsoft.com/v1.0/users/xyz@account.onmicrosoft.com/messages. here I am manually checking if user xyz@account.onmicrosoft.com has shared anything with me. is there any way to know that user xyz@account.onmicrosoft.com has shared me molders or this mailbox itself is being shared with me.
so Is there any API which can give me the list of shared mailBoxes. And also the list of shared mail folder to me.