One of my user lets say user1 has the left the company and his user account is in disabled state. i have a requirement to provide access for few folders of user1's onedrive to user2.
Lets say below are the folders in user1's onedrive. how do i provide access to these folders to user2 from powershell.
If i use the below syntax i can provide access to complete OneDrive but i am not sure how to provide access to few folders. experts guide me. in the below i am taking contoso as an example.
Set-SPOUser -Site https://contoso-my.sharepoint.com/personal/user1_contoso_com -LoginName firstname.lastname@example.org -IsSiteCollectionAdmin $true