Forum Discussion
Users who have left the company....
- DeletedMar 07, 2018
Use the SharePoint Online Powershell and you can grant users access to any onedrive Site collection.
To add access to Site collection
Connect-SPOService -Url https://tenant-admin.sharepoint.com -credential username@domain.com
Set-SPOUser -Site https://tenant-my.sharepoint.com/personal/targerusername_ypo_orgom -LoginName username@domain.com -IsSiteCollectionAdmin $true
Use the SharePoint Online Powershell and you can grant users access to any onedrive Site collection.
To add access to Site collection
Connect-SPOService -Url https://tenant-admin.sharepoint.com -credential username@domain.com
Set-SPOUser -Site https://tenant-my.sharepoint.com/personal/targerusername_ypo_orgom -LoginName username@domain.com -IsSiteCollectionAdmin $true
- Sherman WooMar 08, 2018Iron Contributor
Thanks! Useful script to have in the admin tool-bag.
Last place I was with, they decided to have an IT account in everyone's OD as site collection administrator. I think that's a brutal way to get people to trust the system, if there is potential that their files will be monitored. This is a much better option, if manager has not been configured.
- DeletedMar 08, 2018Well, they technically use that same script to provide it to all the sites, but yeah it's not the best idea. For one, I don't want all those files showing up in my files list and searches as an admin :) and everywhere else.
But also, as an admin, they make it easy for you to use the admin page, users, search, and then in the onedrive section add yourself quickly to a site via GUI and access it all right there. You just got to remember to remove yourself from site collection admin when done :).
- Ted McLaughlinMar 08, 2018Brass Contributor
Thanks for the reply.
Ted