Do you know if delegated permissions will also work? or does this need to be setup with Application level permissions in order to upload files or create folders in a SharePoint site?
For me it worked when both Application and Delegated permissions were enabled. I have also used the AppID, tenantID and Secret as the authentication mode.Under services it was selected only FIles, as my process was just to upload files to Sharepoint.
Would you mind sharing a screenshot of your API permissions? i would like to compare and test as well.
also, did you add a Redirect URI when you first registered your application in AAD?
I have to configure sending emails from three different domains that belong to the same company, I am doing the UiPath part, but someone else has to configure the permissions in azure.