title: How to read a file from a different user's onedrive
body: <p>I have an excel file named &quot;demo.xlsx&quot; uploaded in the root folder of user A's onedrive. This file contains a table named &quot;EmployeeTable&quot;. I want to login to my app as a different user - User 'B' and read data from this table.</p>
  <p>I tried to login as user B and access the data using
  <a href="https://graph.microsoft.com/v1.0/users/8e92a7895e495d6623/drive/root:/demo.xlsx:/workbook/tables(%27EmployeeTable%27)/rows" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/users/8e92a7895e495d6623/drive/root:/demo.xlsx:/workbook/tables('EmployeeTable')/rows</a></p>
  <p>here <strong>8e92a7895e495d6623</strong> is user A's id. But I get the following error:</p>
  <pre><code>statusCode: 404, 
  code: &quot;itemNotFound&quot;,
  body.&quot;message&quot;:&quot;Item does not exist&quot;
  </code></pre>
  <p>I have tried to share the file with user B by logging in to onedrive as user A and using the 'share' option, but I still get the above error.</p>
  <p>When I login to my app as user A, and use the same URI as mentioned above, I am able to retrieve the data correctly.</p>
  <p>Can anyone guide me on how to read an excel file from a different user's onedrive folder? I want to be able to keep this excel file in a common area like a user's onedrive folder and have multiple users read from it.</p>
  <p>Note: the app that I have built is based on <a href="https://github.com/microsoftgraph/angular-excelstarter-sample" rel="nofollow noreferrer">https://github.com/microsoftgraph/angular-excelstarter-sample</a></p>