Giving manager access to previous employee OneDrive Data.

%3CLINGO-SUB%20id%3D%22lingo-sub-1426451%22%20slang%3D%22en-US%22%3EGiving%20manager%20access%20to%20previous%20employee%20OneDrive%20Data.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426451%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20situation%20where%20we%20are%20shutting%20down%20an%20office%20location%20where%20users%20are%20using%20OneDrive.%20I%20have%20a%20list%20of%20users%20from%20that%20location%20and%20the%20users'%20manager%20who%20needs%20to%20take%20over%20the%20users%20data.%20Is%20there%20any%20way%20to%20automate%20this%20via%20PowerShell%20for%20example%2C%20instead%20of%20going%20to%20each%20users%20profile%20and%20manually%20changing%20the%20site%20collection%20owner%3F%20Any%20help%20is%20much%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1426451%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20Access%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1426533%22%20slang%3D%22en-US%22%3ERe%3A%20Giving%20manager%20access%20to%20previous%20employee%20OneDrive%20Data.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1426533%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F531473%22%20target%3D%22_blank%22%3E%40charlie4872%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIts%20pretty%20much%20possible.%20You%20have%20to%20read%20One%20Drive%20Site%20Collection%20of%20Each%20user%20and%20Define%20Secondary%20Owner%20as%20his%20Manager.%3C%2FP%3E%3CP%3ETO%20get%20Manager%20of%20User%20is%20additional%20activity%20of%20of%20links%26nbsp%3B%20given%20as%20starting%20point.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fbyteben.com%2Fbb%2Fmodify-onedrive-site-admins-with-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbyteben.com%2Fbb%2Fmodify-onedrive-site-admins-with-powershell%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CU%3E%3CSTRONG%3EUsing%20Pnp%20Powershell%20%3A%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fvladtalkstech.com%2F2019%2F04%2Ffind-a-users-onedrive-for-business-site-url-with-powershell.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fvladtalkstech.com%2F2019%2F04%2Ffind-a-users-onedrive-for-business-site-url-with-powershell.html%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20you%20have%20any%20questions%20further.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

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. Is there any way to automate this via PowerShell for example, instead of going to each users profile and manually changing the site collection owner? Any help is much appreciated!

 

Thanks

1 Reply

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.