Forum Discussion

Mathieu Marchant's avatar
Mathieu Marchant
Copper Contributor
Jun 25, 2019
Solved

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 ...
  • Toby Statham's avatar
    Toby Statham
    Jul 10, 2019
    If 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

Resources