List Master Categories for Shared Mailbox using Graph Rest API

Diksha Yadav 61 Reputation points
2023-08-24T16:56:47.3366667+00:00

I am getting a Forbidden - 403, when I am trying to access GET /users/{id|userPrincipalName}/outlook/masterCategories for a shared mailbox. I have given the Mail.ReadWrite & Mail.ReadWrite.Shared permission for it too.

"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again."
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,035 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ab-8756 800 Reputation points
    2023-08-24T17:44:35.8833333+00:00

    Hello Diksha Yadav,
    Thank you for reaching out to this Q&A Forum.

    The necessary permission for accessing this endpoint is MailboxSettings.Read. After conducting tests with various users on my end, I have consistently encountered the same error. Currently, I am only able to access my own user information. It appears that there might be an issue associated with this particular endpoint. As it falls within the v1.0 version, I would recommend you try adding MailboxSettings.Read first and if that doesn't work, please open a support ticket.

    Hope that helps.
    Thanks.|
    --please don't forget to upvote and Accept as answer if the reply is helpful—


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.