Forum Discussion
Mathieu Marchant
Jun 25, 2019Copper Contributor
AuthenticationManager.GetAppOnlyAuthenticatedContext Azure App API permissions access denied
When building a ClientContext based on an App ID and ClientSecret, you get an access denied while trying to access a SharePoint site. I have tried setting several API permissions, separately for ...
- Jul 10, 2019If you're connecting to the SharePoint APIs using the Azure App registration you'll need to do it with a certificate as detailed here https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
Otherwise use the method in my other post
ArvindKumar Mepani
Jul 19, 2019Brass Contributor
Does admin have given consent to your app??
For first time admin consent is required to use app created from azure portal app registration.
For first time admin consent is required to use app created from azure portal app registration.