Unable to Give Full Control to SharePoint Online Add-in

Aashish Khamkar 41 Reputation points
2020-08-21T20:43:02.083+00:00

I registered an add-in on my SharePoint Online site collection by going to [Site Collection URL]/_layouts/15/AppRegNew.aspx
Noted Client ID and Client Secret. Trying to give it FullControl here: [Site Collection URL]/_layouts/15/AppInv.aspx by entering the following XML:

<AppPermissionRequests AllowAppOnlyPolicy="true">  
   <AppPermissionRequest Scope="Site Collection URL" 
    Right="FullControl" />
</AppPermissionRequests>

On 'Do you trust the app page' it does not ask me to give it Full Control but only the following:
Let it share its permissions with other users.
Let it access basic information about the users of this site.

What am I missing?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,608 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-08-24T01:46:25.97+00:00

    The site collection scope url in permission XML should be :

     http://sharepoint/content/sitecollection  
    

    19788-image.png
    You could have a try with this url.

    More information about SharePoint APP registration for your reference:
    https://video2.skills-academy.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
    https://video2.skills-academy.com/en-us/sharepoint/dev/sp-add-ins/add-in-permissions-in-sharepoint


    If the response is helpful, please click "Accept Answer" and upvote it.


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.