Outlook Add in Error - Identity API

Sam Dowson 0 Reputation points
2025-03-24T11:38:19.76+00:00

getAccessToken - 'The identity API is not supported for this add-in.' My Custom Add in taskpane shows and it is functional but when getAccessTokem is called throws an error.

Outlook Windows Classic Outlook for Windows For business
{count} votes

2 answers

Sort by: Most helpful
  1. Marten Theunissen 676 Reputation points
    2025-03-24T12:33:29.5866667+00:00

    Sure,

    lets dig in.

    Provide and confirm some of the below

    outlook version

    win version

    ad connected azure connected

    Addin Function

    Ensure that the platform you're using supports the identity API. The OfficeRuntime.auth.getAccessToken method is supported in Excel, Word, and PowerPoint, but may not be supported in Outlook.

    confirm necessary configurations for Single Sign-On (SSO)

    Confirm your app permissions like User.Read, Files.Read.All, etc

    Confirm Manifest file details

    review logs under "Application," "Security," and "System" to find relevant events for failed events

    https://github.com/OfficeDev/office-js/issues/5420

    https://learn.microsoft.com/en-us/office/dev/add-ins/testing/testing-and-troubleshooting

    https://answers.microsoft.com/en-us/outlook_com/forum/all/outlook-add-in-365-api-is-not-supported-on-this/679677f5-bca0-4fc6-8d28-c203835c311f

    0 comments No comments

  2. SokiGuo-MSFT 31,526 Reputation points Microsoft External Staff
    2025-03-26T07:38:11.0366667+00:00

    Hi @Sam Dowson

    Thanks for the sharing.


    However, due to a recent update in forum policy, the question author now is not able to accept their own answers.

    So I have written a brief summary of the solution this issue. Please feel free to accept it as the answer, which would benefit others who also has similar issues in forum.

    [Outlook Add in Error - Identity API]

    Issue: getAccessToken - 'The identity API is not supported for this add-in.' My Custom Add in taskpane shows and it is functional but when getAccessTokem is called throws an error.

    Solution:

    Because getAccessToken is no longer supported in Outlook Nested app authenication is necessary. https://learn.microsoft.com/en-us/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.