Worked with SharePoint admin to grant Admin Consent for Sites.Selected Application Permission; however, the test connectivity is getting an error:
App 'MS Graph for SharePoint' started successfully (id: 1784033389062) on asset: 'sharepoint_list_update'(id: 553)
Loaded action execution configuration
Generating a token
Connecting to endpoint /sites/...
Test Connectivity Failed
1 action failed
Error from server. Status Code: 403 Data from server: accessDenied. Access deniedMost of the SharePoint actions use SharePoint Site ID asset parameter while making an API request. But as it is difficult to obtain the site ID from the SharePoint UI, list sites action has been added. While testing that App with the Sites.Selected permission, the list sites endpoint returns 0 sites compared to using the Sites.Read.All which lists all the sites.
According to Microsoft Graph permissions reference Microsoft Graph permissions reference - Microsoft Graph | Microsoft Learn , the user will have to manually grant permission to each site that they want the application to operate on individually using https://graph.microsoft.com/v1.0/sites/{siteId}/permissions endpoint. Moreover, as per Create permission Create permission - Microsoft Graph v1.0 | Microsoft Learn , the application should have Sites.FullControl.All permission to access the permissions endpoint which could be too permissive. As alternative approach, for Test Connectivity specifically, you could potentially use:
- Sites.Read.All - For read-only access to all sites
- Sites.Selected - For access to specific sites (requires additional configuration)
Please note that not all actions in the App require Sites.Read.All permission. You can disable the permission after completing Test Connectivity if you don't need it.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |