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 61 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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,015 questions
0 comments No comments
{count} votes

Your answer

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