Intune Graph success: 403 (Forbidden) - Visual Studio

Copper Contributor

Please excuse my ignorance in Visual Studio coding. I am simply trying to follow the example in 

How to use Azure AD to access Intune APIs in Microsoft Graph - Microsoft Intune | Microsoft Docs

 

I followed all the steps mentioned, set the required API permission and consent for the App, copied and pasted the code, and edited it with the App ID. When I run the project, I get the request for credentials popup Window then followed by the the error message "System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 403 (Forbidden).'"

 

error.jpg

Can you please assist? 

 

0 Replies