vgrem / Office365-REST-Python-Client

Microsoft 365 & Microsoft Graph Library for Python
MIT License
1.3k stars 332 forks source link

SharePoint API with certificate flow getting tenant not found error #797

Open psmitak opened 9 months ago

psmitak commented 9 months ago

Hi, I am trying to use the SharePoint certificate flow and I could successfully generate certificate and use it. I just wanted to know if only Site.Full.Control.All permission works with API or Site.Read.Write.All also works? I have Site.Read.Write.All set up for the app but getting 'The resource principal not found in Tenant' error.

Thanks, Smita

ssmails commented 7 months ago

Hello Smita,

You need Site.FullControl.All per the documentation below. https://github.com/vgrem/Office365-REST-Python-Client/wiki/How-to-connect-to-SharePoint-Online-with-certificate-credentials