title: Querying the Windows Azure Active Directory Graph Api by Rest Call
body: <p>According to this:
  <a href="http://msdn.microsoft.com/en-us/library/windowsazure/dn424880.aspx">http://msdn.microsoft.com/en-us/library/windowsazure/dn424880.aspx</a>
  and this
  <a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh974467.aspx">http://msdn.microsoft.com/en-us/library/windowsazure/hh974467.aspx</a></p>
  
  <p>I should be able to do a get request</p>
  
  <pre><code>https://graph.windows.net/&lt;my-object-guid&gt;/tenantDetails?api-version=0.9
  </code></pre>
  
  <p>and I am using Fiddler just get started. Setting this in the composer:
  User-Agent: Fiddler
  Host: graph.windows.net
  Authorization: Bearer eyJ0eXA .... (My Token, used some c# from WAAL to get the token).</p>
  
  <p>This is what is returned</p>
  
  <pre><code>HTTP/1.1 401 Unauthorized
  Cache-Control: private
  Content-Type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8
  Server: Microsoft-IIS/8.0
  WWW-Authenticate: Bearer realm="&lt;my-object-guid&gt;", error="invalid_token", error_description="Access Token missing or malformed.", authorization_uri="https://login.windows.net/&lt;my-object-guid&gt;/oauth2/authorize", client_id="00000002-0000-0000-c000-000000000000"
  ocp-aad-diagnostics-server-name: 11iIdMb+aPxfKyeakCML7Tenz8Kyy+G8VG19OZB/CJU=
  request-id: 99d802a3-0e55-4018-b94d-a8c00ec8f171
  client-request-id: 7ed93efd-86c5-4900-ac1f-747a51fe1d8a
  x-ms-dirapi-data-contract-version: 0.9
  X-Content-Type-Options: nosniff
  DataServiceVersion: 3.0;
  X-AspNet-Version: 4.0.30319
  X-Powered-By: ASP.NET
  X-Powered-By: ARR/3.0
  X-Powered-By: ASP.NET
  Date: Tue, 14 Jan 2014 00:13:27 GMT
  Content-Length: 129
  
  {"odata.error":{"code":"Authentication_MissingOrMalformed","message":{"lang":"en","value":"Access Token missing or malformed."}}}
  </code></pre>
  
  <p>The token is accepted when I do some stuff in my application so I dont belive its malformed.</p>