GRAPH API - get user mailbox forbidden access error

Daniel Cieckiewicz 0 Reputation points

Hello, I would like to get and then set shared mailbox settings. I would like to get mailbox settings first, but I can't overcome the forbidden access problem. I am using the request from above. I granted permissions in Modify Permissions tab. Should I provide some Request headers or anything else to make it work? Error:

    "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.
10,025 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 91,276 Reputation points MVP

    You cannot use the Delegate permissions model to access or configure other user's settings. Use Application permissions instead.

    0 comments No comments