A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear @reza admin,
The vendor is technically correct regarding this specific Entra ID (Azure AD) application consent screen, but there is a modern, secure way around it to restrict their access to only a single SharePoint site.
The "SharePoint Backups Connector" app is requesting the AllSites.Write Graph API permission. When using this specific application-level permission, Microsoft's default consent prompt warns that it applies to "all site collections." If you click Accept, the vendor will indeed gain read/write access to your entire SharePoint tenant.
Instead of granting tenant-wide access, you can restrict the vendor's app to a single specific site collection using Microsoft's Sites.Selected application permission.
Here is how you can implement this secure workaround:
- Ask the vendor to change the requested permission: Have the vendor update their app registration to request the Sites.Selected permission instead of AllSites.Write (or Sites.FullControl.All).
For detailed step-by-step instructions and technical validation, you can refer to the official Microsoft guide: Controlling insights and app access to SharePoint sites via Sites.Selected.
- Grant consent for the app: Once they update it, you can safely accept the prompt, as the app will initially have access to zero sites.
- Assign permissions to the specific site: Use SharePoint Online PowerShell to grant the vendor's application explicit access only to the single required site URL.
Run the following PowerShell command as a SharePoint Administrator:
# Connect to your SharePoint Online Admin center
Connect-SPOService -Url "https://yourtenant-admin.sharepoint.com"
# Grant Write access to the vendor's App ID for the specific site
Grant-PnPAzureADAppSitePermission -AppId {client-id} -DisplayName {display-name} -Permissions <Read|Write|Manage|FullControl> -Site {site-object}
Please refer to this document: Understanding Resource Specific Consent for Microsoft Graph and SharePoint Online | Microsoft Learn
Please understand that I don't have a testing environment for this vendor, so I can only provide Microsoft's code and documentation for reference. Please test it directly in your own environment.
I hope this helps you make an informed decision. Please let me know if you have further questions.
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.