Why "Unauthenticated" error is thrown while using the "Find Files And Folders" activity even after being a site owner and having all the required permissions?
Issue Description: Sometimes, while using the "Find Files And Folders" activity within the MS Office 365 Scope with the application ID and secret, one may run into the following error,
Troubleshooting Steps:
- Verify if an appropriate authentication mechanism is being used based on the mode of the automation: Unattended vs. Attended Automation
- Check if all the required API permissions are granted. Make sure the authentication type chosen in the MS Office365 Scope activity is appropriate for the API permission type given in the AzurePortal, as described here: Adding API permissions
- When admin configures the App in Azure, check if the "Grant Consent" button is clicked. See highlighted in Blue below. The Grant Admin Consent may also be found at the top of the Configured permissions list as seen in the example below.
- Check if the URL being requested is connected with your specific ID. Share the site with the application ID (i.e. the application registration). See the following Microsoft documentation referencing: Granting access using SharePoint App-Only
- Check if possible to reach the SharePoint site manually on the machine
- Try another site URL and check if the issue can be replicated
- Test another activity from the MSOffice365 package with the same target and see if different results.
If the issue still persists, provide the below information for further analysis:
- A sample of the failing workflow
- A Fiddler trace gathered at the time of reproducing the behavior (How to Use Fiddler As A Proxy For the Robot Service to Collect Information) .