Fixed – Access Denied (CryptographicException) on calling SharePoint Online APIs using Azure AD App-Only


When trying to call SharePoint Online APIs using Azure AD App-Only with Certificate Auth, the Access Denied exception was encountered. The issue was caused by the console app trying to create a key in the machinekeys folder without the necessary write access. Providing the write access resolved the issue and allowed the SharePoint Online APIs to be called successfully.


Article 7m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time