What values to put under "WebApplicationInfo"'s <Resource> tag, while configuringthe manifest file of an Outlook Add-In for SSO.

Arun Singh 5 Reputation points
2024-11-12T12:31:25.0766667+00:00
  1. We have developed a ReactJS, web-based, Outlook Add-In , using Microsoft JavaScript Office APIs.
  2. The Outlook Add-In is hosted on the URL "https://cmicpublish.cmicglobal.com/cmicdev/outlookplugin/".
  3. The URL of the landing page of the Add-In being "https://cmicpublish.cmicglobal.com/cmicdev/outlookplugin/taskpane.html".
  4. Now, we want to call the "Office.context.auth.getAccessToken" Office API, to retreive an authentication for calling Microsoft Graph APIs.
  5. For this, it is required to add a new "WebApplicationInfo" section in the manifest file of the Outlook add-in, like this:
  6. We also have an Azure application, set up according to our requirements. Please assume that, in the following section, "12345678-abcd-1234-efab-123456789abc" is the Id of our Azure application. https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/tab-sso-manifest

<WebApplicationInfo>

  <Id>12345678-abcd-1234-efab-123456789abc</Id>

  <Resource>api://___ _ _ _/12345678-abcd-1234-efab-123456789abc</Resource>

  <Scopes>

    <Scope>Files.Read.All</Scope>

    <Scope>offline_access</Scope>

    <Scope>openid</Scope>

    <Scope>profile</Scope>

  </Scopes>

</WebApplicationInfo>

**
Question**

For our case, as explained above, what should be the value in the <Resource> XML section.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-13T02:16:02.58+00:00

    Hello Arun Singh,

    Thank you for reaching out to Microsoft Support!

    According to the documentation, the value of <Resource> is the Application ID URI of the add-in as registered in the Azure Active Directory v 2.0 endpoint.

    The Application ID URI is set when we register the application, as shown below, see the documentation for details.

    User's image

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


  2. Arun Singh 5 Reputation points
    2024-11-13T09:31:57.92+00:00

    Thank you for your response, @Anonymous .

    But we still have questions which we would like to be answered.

    We understand that the value of <Resource> is the Application ID URI of the add-in as registered in the Azure Active Directory v 2.0 endpoint.

    But, our prime question is what should be that value? What should we put under the Application ID URI in our registered in the Azure Active Directory v 2.0 endpoint?

    0 comments No comments

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.