Grant administrator consent to the add-in

Note

This procedure is only needed when you're developing the add-in. When your production add-in is deployed to AppSource or the Microsoft 365 admin center, users will individually trust it or an admin will consent for the organization at installation.

Carry out this procedure after you have registered the add-in.

  1. Browse to the Azure portal - App registrations page to view your app registration.

  2. Sign in with the admin credentials to your Microsoft 365 tenancy. For example, MyName@contoso.onmicrosoft.com.

  3. Select the app with display name $ADD-IN-NAME$.

  4. On the $ADD-IN-NAME$ page, select API permissions then, under the Configured permissions section, choose Grant admin consent for [tenant name]. Select Yes for the confirmation that appears.

Note

We recommend this procedure as a best practice if you're using a Microsoft 365 developer account. However, if you prefer, it's possible to sideload an SSO add-in under development and prompt the user with a consent form. For more information, see Sideload on Windows and Sideload on Office on the web.