sp-dev-docs
sp-dev-docs copied to clipboard
What's the least privileged permissions need to grant permissions to the newly created principal on sites operation
[Enter feedback here]
We need operate with SharePoint site and we use app-only ACS authentication to do. Refer to your doc and want to confirm: To grant permissions to the newly created principal via [https://contoso-admin.sharepoint.com/_layouts/15/appinv.aspx], what's the least privileged permissions? We can do it work by site owner before, but currently just site admin can work.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 35a3017a-6d6c-237f-fc57-94247a8f7bf6
- Version Independent ID: 93413445-18fa-9245-ea64-1c1d789dce1e
- Content: Granting access using SharePoint App-Only
- Content Source: docs/solution-guidance/security-apponly-azureacs.md
- Product: sharepoint
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@Jingshu923 you can find this information in the Add-in permissions in SharePoint documentation.
Seems this doc can't help me. I want to know what the least privileged permission can grant add-in permission, not about granting which permission. To grant permissions to the newly created principal via https://contoso-admin.sharepoint.com/_layouts/15/appinv.aspx, what's the least privileged permissions can do this grant?
You need full control permissions to add an app from the SharePoint store, so it's likely that the same applies in your situation:
"You must have Full Control permissions to add apps from the SharePoint Store. You already have this if you are a Site Owner."
My "app" means using service principal to have permission on SharePoint, not "an app".
Do you know the least privileged permissions to do this as the picture show?
The user would need to be a SharePoint administrator, since the page above is part of the SharePoint admin center (https://contoso-admin.sharepoint.com/_layouts/15/appinv.aspx).
Thanks. Could you help confirm this with developer since we can make it work before by using Owner permission. But can't work now. Are there any changes recently?
The page you're referring to in the admin center (https://contoso-admin.sharepoint.com/_layouts/15/appinv.aspx) has always been inaccessible to those who are not SharePoint administrators. You cannot access the SharePoint admin center without being a SharePoint administrator.
You might be referring to a site level app registration page e.g. https://mytenant.sharepoint.com/sites/mysite/_layouts/15/appinv.aspx
Closing this issue as "answered". If you encounter a similar issue(s), please open up a new issue. See our wiki for more details: Issue-List: Our approach to closed issues