title: Accessing Microsoft Graph API : Resource app ID: 00000002-0000-0000-c000-000000000000
body: <p>I've been using the following code sample to test access to the Microsoft Graph API from a Java application:</p>
  
  <p><a href="https://azure.microsoft.com/en-au/resources/samples/active-directory-java-webapp-openidconnect/" rel="nofollow noreferrer">https://azure.microsoft.com/en-au/resources/samples/active-directory-java-webapp-openidconnect/</a></p>
  
  <p>In my Azure portal I've created a Registered app under Azure Active Directory.  I've gone into <code>API Access &gt; Required Permissions</code> and added <code>Microsoft Graph</code> and checked all the Application Permissions and Delegated Permissions.</p>
  
  <p>When I try to call the sample application's 'Show users in the tenant' function, I get the following error message from the Microsoft Login process:</p>
  
  <blockquote>
    <p>AADSTS65005: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID: 1b350134-84b1-4ca1-a181-03e3699996a1. Resource value from request: <a href="https://graph.windows.net" rel="nofollow noreferrer">https://graph.windows.net</a>. Resource app ID: 00000002-0000-0000-c000-000000000000. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000.</p>
  </blockquote>
  
  <p>Can anyone suggest how to proceed from here?</p>