Hello,
I am working on a app which has a goal of collecting data from different organizations, most of the users will be guests.
Some users have no problem connecting and sending data but some other has problem with authentication, and it seems that this is coming from SharePoint.
The users can access the app but they get the following error "Error while retrieving data from network".
I checked the users' access and it is all good (I tried with a guest account with the exact same rights).
The app uses Dataverse to read some data and some environment variables and SharePoint to send files.
All rights are given through security groups and are linked to SharePoint lists and some folders in a SharePoint library.
Here's what I discovered :
- on OnStart flow is launched from the app and failed while sending an HTTP request through SharePoint.
Details :
{
"status": 401,
"message": "{\"error_description\":\"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown.\"}\r\nclientRequestId: ef8bca92-8c82-4f46-9e2f-2446f78b566b\r\nserviceRequestId: 47b5f7a0-002e-7000-e951-e92ccd789619",
"source": "https://****.sharepoint.com/sites/*****/_api/web/lists/GetById('6874e75*****')",
"errors": []
}
- Dropdowns and other elements reading from SharePoint lists fails to read data : "Error while retrieving data from network". I used the monitor to troubleshoot and did notice that the failed operations are coming from SharePoint. I found out that the connection id appearing in the monitor doesn't match the connection id of the user I can retrieve from PowerShell
- I tried removing connections from PowerShell and force the user to reauthenticate
- I ask the user to use a private window and to clear the browser cache.
I'm asking for your kind help as I don't know where to look.
Thanks a lot.
Thomas