How to provide tenant admin permission to app only provider hosted add-in on SharePoint 2019 On-premise

Raya, Ram (US) 21 Reputation points
2022-06-14T15:25:08.453+00:00

I used appinv.aspx to grant tenant admin permission to app only provider hosted add-in on SharePoint 2019 on-premise. Got the error message "Your tenant administrator has to approve this app". The article explains a workaround for SharePoint 2019 online. I have searched but couldn't find a fix for SharePoint 2019 on-premise.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,071 questions
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 36,406 Reputation points Microsoft Vendor
    2022-06-15T06:50:06.983+00:00

    Hi @Raya, Ram (US) ,
    As far as I know, Only SharePoint online have tenant level permission. Per my test, we can only grant site collection level app-only permissions in SharePoint 2019. In SharePoint online, we can register tenant level permission in tenant-admin.sharepoint.com. But in SharePoint on-premise, there is not any url like online for us to register tenant level permission. You can refer to the following document about permissions scope
    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/add-in-permissions-in-sharepoint


    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.



0 additional answers

Sort by: Most helpful

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.