title: How to get permission levels for Files/Folders/Documents in Sharepoint using rest endpoints?
body: <p>I am using the following rest end point while trying to get permission levels for a particular file/document. </p>
  
  <pre><code>https://&lt;web url&gt;/_api/Web/GetFileByServerRelativeUrl('&lt;path to the file&gt;')/getlimitedwebpartmanager(scope=1 or 0)
  </code></pre>
  
  <p>I am able to get hold of the file successfully. But how should I get hold of the permission levels now?</p>