Adding Site Collection Admin To List Of Previous Employees OneDrive

Brass Contributor

I am looking for a way to add a user as a secondary site collection admin to a list of users. We are closing a site and there are about 50 users that I need to give their manager access to their OneDrive data and doing it one by one in the portal will be very time consuming. Does anyone know of a powershell script that can accomplish his?

 

Thanks in advance!

1 Reply