title: How to share a OneDrive file using powershell?
body: <p>I have 3 files inside a subsolder of my OneDrive, say "Documens/TopFolder/SubFolder" </p>
  
  <p>I can list 3 files inside this SubFolder using</p>
  
  <pre><code>Get-PnPFolder -FolderRelativeUrl "Documens/TopFolder/SubFolder"
  </code></pre>
  
  <blockquote>
  <pre><code>File1.xlsx
  File2.xlsx
  File3.xlsx
  </code></pre>
  </blockquote>
  
  <p>Now I want to share these 3 files with 3 different users, say</p>
  
  <ul>
  <li>File1 with User1@abc.com</li>
  <li>File2 with User2@abc.com</li>
  <li>File3 with User3@abc.com</li>
  </ul>
  
  <p>I am a user in my organization, so I don't have admin access to share point. I just started learning powershell.</p>
  
  <p>Questions are:</p>
  
  <ol>
  <li><p>How to get these 3 files into <code>Get-PnPListItem</code>? </p></li>
  <li><p>How to give permission for each file using windows powershell?</p></li>
  <li><p>How to get the annonymus weburl link for each file to share with individual user? </p></li>
  </ol>