Forum Discussion
Ted McLaughlin
Mar 07, 2018Brass Contributor
Users who have left the company....
I know in ODFB that we have the ability to automatically give access to a departed employee's OD account to their manager, but that only appears to kick in when a user has been removed from AD altoge...
- 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
Sherman Woo
Mar 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.
Deleted
Mar 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 :).
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 :).