OAuth2 support for O365

May I ask why its necessary in order to just read an inbox… (not send mail just read) all of the scopes of “Notes” and Contacts and MailboxSettings… none of this pertains to reading an email … Setting up application in Azure with all these permissions is a security nightmare.

@lanndoc,
Welcome to our community! Thank you for posting the query. We will answer you as soon as possible.

@lanndoc

The Code snippet uses unified code which may be used in different examples. Not all items in the scope may be required for your case. You may experiment with a scope and remove unnecessary items.