Getting 403 Forbidden error for fetching message from a shared mailbox using Graph API with get an open extension object identified by name.

Diksha Yadav 101 Reputation points
2023-09-04T08:06:29.0533333+00:00

I want to get a message from a shared mailbox using Graph API for an Add-in for Outlook for Mac with get an open extension object identified by name. I can access this for a personal mailbox( /v1.0/me/messages/<itemId>?$expand=Extensions($filter=Id eq <customPropertyId>) ) without any issues but when I try to do the same for a shared mailbox I am getting 403 Forbidden. (/v1.0/users/<sharedMailbox ID>/messages/<itemId>?$expand=Extensions($filter=Id eq <customPropertyId>)). I have given the application the following permissions. Can someone let me know if this is possible for a shared mailbox and if so what other permissions need to be given for the same.Screenshot 2023-09-04 at 1.33.24 PM

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.