Open Sharukh-maker opened 1 year ago
I had this exact problem. It took me a while to realise I had forgotten to grant admin consent for the api permission.
@JumpingJezza Did you follow this tutorial https://www.leonarmston.com/2022/02/use-sites-selected-permission-with-fullcontrol-rather-than-write-or-read/ or you have another useful resource to grant the app to full control on a particular site collection ?
I followed this tutorial, granted admin consent fot the Sites.Selected api, and I have the same error as @Sharukh-maker . But if I use Files.ReadWrite.All, of course it's working. Any ideas ? @halliba
@ayoubqrt I did see that tutorial, but the read.me was more useful: https://github.com/halliba/az-pipelines-2-sharepoint
@Sharukh-maker Is it working now? Have you added sites.selected permission to sharepoint in azure app registration portal
Which significant should we used here for azure pipeline,I am not able to understand why i am getting this error. When I am trying to upload files from repository to Sharepoint document library then it will shown an error.I am global admin where i want to upload files in sharepoint library. Please check and let me know.
Could not validate drive id.Upload files to SharePoint: Testdoc