Forum Discussion
charlie4872
May 29, 2020Copper Contributor
Giving manager access to previous employee OneDrive Data.
I have a situation where we are shutting down an office location where users are using OneDrive. I have a list of users from that location and the users' manager who needs to take over the users data...
ShivajiDhole
May 29, 2020Copper Contributor
Hi charlie4872 ,
Its pretty much possible. You have to read One Drive Site Collection of Each user and Define Secondary Owner as his Manager.
TO get Manager of User is additional activity of of links given as starting point.
https://byteben.com/bb/modify-onedrive-site-admins-with-powershell/
Using Pnp Powershell :
https://vladtalkstech.com/2019/04/find-a-users-onedrive-for-business-site-url-with-powershell.html
Let me know if you have any questions further.