I have been using powershell to programmatically manage some tedious work in SharePoint Online (SPO) I have been using the Cmdlets of Powershell PnP. I have been looking for a cmdlet that will let me add/share give permission to a user so he/she can access this file located in a document library on SharePoint Online.
How can I share a SPO Document library file with edit or view permission using Powershell?
if you could please guide me in the right direction
Thank you