title: Trying to get SharePoint sites for given current user
body: <p>Is it possible to retrieve SharePoint sites that are available for given users through Microsoft Graph API. I looked into Graph API User (<a href="https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user" rel="nofollow noreferrer">https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user</a>) and noticed that there is a relationship between user and site (sites). However, when I tried to use that one in Graph Explorer, I got the error "Unsupported segment type."</p>
  
  <p>Request: <code>https://graph.microsoft.com/v1.0/users/{user_id}/sites</code></p>
  
  <pre><code>{
  "error": {
      "code": "BadRequest",
      "message": "Unsupported segment type. ODataQuery: users/{user_id}/sites",
      "innerError": {
          "request-id": "cf9dedff-5642-4a77-a179-3d63d2921a8a",
          "date": "2017-05-17T19:46:29"
      }
  }
  </code></pre>
  
  <p>}</p>