Hi there
On a SharePoint Online site - what PowerShell code can read the following CSV file > break inheritance on the document library folders > grant direct permissions to external users (not adding them to a group).
CSV file:
Site, DocLibPath, ExternalUserLogin, DesiredPermissions
http://domain.sharepoint.com/sites/site1, /DocLib1/ChildFolder1, john@hotmail.com, Read Only
http://domain.sharepoint.com/sites/site1, /DocLib1/ChildFolder1, peter@gmail.com, Contribute
http://domain.sharepoint.com/sites/site2, /DocLib1/ChildFolder2/ChildFolder3, jessica@gmail.com, Contribute
http://domain.sharepoint.com/sites/site3, /DocLib2/ChildFolder2, mary@somevendor.com, Read Only
http://domain.sharepoint.com/sites/site1, /DocLib3/ChildFolder3, mary@somevendor.com, Read Only
Thank you so much.