Share via

Unable to Deploy Add-in in Admin Center After Adding SSO Code

s w 110 Reputation points
2024-06-07T14:12:52.51+00:00

I created a Word add-in that requires SSO for necessary permissions. When I tested it in Word online, I successfully added my manifest without errors, and the functions worked correctly.

However, upon uploading my manifest file to the Microsoft 365 Admin Center for centralized deployment of add-ins, I encountered an error: 'There was an error while giving the admin consent. Please try refreshing the add-in from it's details page.' After removing the SSO part from my manifest file, I was able to upload it successfully.

I suspect that I may have misconfigured my Azure AD settings. Could you please assist me in identifying where I went wrong?

This is my manifest file sso configuration (with my application id): Capture

I have all necessary permission granted: Capture I also set up my Web URIs and my custom scope (with my application id):Capture User's image

I have my add-in url added in the Web Redirect URIs. 

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Lathisha Shaik 0 Reputation points
    2026-02-26T09:00:48.1833333+00:00

    Hi. I have run into the same issue previously. Keeping the same scopes configured in the azure app registration in the manifest did the trick.

    User's image

    Corresponding Scope section should look like this

    <Scopes>

              <Scope>openid</Scope>

              <Scope>profile</Scope>

              <Scope>Mail.ReadWrite</Scope>

              <Scope>Mail.Send</Scope>

              <Scope>User.Read</Scope>

    </Scopes>

    I hope this is useful.

    0 comments No comments

  2. Michael Taglione 0 Reputation points
    2025-01-08T01:49:38.3633333+00:00

    Im running into the same issue, any resolution found?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.