Home > Net >  What is the Correct Microsoft Graph API Permission for Reading Mailbox to specific user only
What is the Correct Microsoft Graph API Permission for Reading Mailbox to specific user only

Time:12-02

Good day! I just want to ask about microsoft graph Api permission, there's too many options here but my goal is to have the full access ONLY to specific account and read the mail box such as Subject, Email Body, attachment and Sender Email, the system will read the mails from the back end from the specific account only. (like a basic auth)

I'm trying to make system to my org. I don't have the full control in azure portal, so I create API Permission request.

What option need to include in my api permission request?

enter image description here

enter image description here

Hope this helps

Thanks

CodePudding user response:

Access to Graph API is normally done one of two ways:

The permissions required for the access type are different and are documented for each API endpiont under the Permissions sections. The on behalf of user access requires "delegated" type permissions and application access require application permissions.

If you use "on behalf of user access" (i.e. you have a user fronting the authentication or you know the username/password) and the correct permissions for the api endponts you are using then you only have access to the data that that user has access too (even if you have permissions like ".all").

If you use "application access" then normally you need higher permissions and you can normally read all user/org data. In some specific cases you can constrain application access. Email account access happens to be one. Follow the Limit Mailbox access instructions to limit a specific application id to a specific set of mailboxes.

  • Related