Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,919 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am developing a React.js-based Outlook add-in and using the Office.auth.getAccessToken()
API to authenticate users. But I need to obtain an access token A with additional Microsoft Graph API scopes (e.g., Mail.Read
, User.Read
).
From my research, I understand that:
Office.auth.getAccessToken()
provides an identity token (Token A) but does not allow specifying custom Graph API scopes. WebApplicationInfo
section in the Outlook add-in manifest does not support defining additional Microsoft Graph permissions. Is there any way to configure the WebApplicationInfo
element or any other method to obtain Token A with Graph API scope or any other custom scope directly using Office.auth.getAccessToken()
?