Notifications
Announcements
The URI used in the HTTP SEND REQUEST node in Power Automate is: _api/web/getfolderbyserverrelativeurl( /sites/sitename/path')/ListItemAllFields/RoleAssignments?$expand=Member/Users,RoleDefinitionBindings
_api/web/getfolderbyserverrelativeurl( /sites/sitename/path')/ListItemAllFields/RoleAssignments?$expand=Member/Users,RoleDefinitionBindings
Two issues have emerged:
The user can only upload the file if they are an owner of the site and have access to the shared folder.
If the user is a member of the site and has the folder shared with them, they cannot upload the file and receive the following error:
DocumentLibrary_SP_Permissions.Run failed: { "error": { "code": 502, "source": "default-eccd734e-7022-4709-aba5-a5dd77929e27.05.common.europe.azure-apihub.net", "clientRequestId": "d80efb5a-851a-4e73-b55d-fbf0e8820ee9", "message": "BadGateway", "innerError": { "error": { "code": "NoResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '08584699259120012869458064177CU151'." } } }
If the user hasn't access in the S.P site, the error that receive is Error when trying to retrieve data from the network: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) clientRequestId: 904b01fb-15c0-45cd-af9b-0a1ac3f25f34 serviceRequestId: 912864a1-10d1-a000-8f08-5869b0204160
If the user hasn't access in the S.P site, the error that receive is
The goal, however, is to share only the folder with the user (without adding them as an owner or member of the site) and have the app work properly.
Can anyone help?
Thanks.
Thank you for your support! This way, even though the user is a member, the application works. However, when I change their permission from write to read, they automatically become a viewer with read permissions, and the app stops working.
It only works if the user is a member of the site.
Is there a way to make it work with the viewer role/without any write permissions? Thanks
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 501 Super User 2025 Season 2
Tomac 323 Moderator
abm abm 237 Most Valuable Professional