Forum Discussion
copy files
Hi i am able to connect to shell using my credentials myuser@mydomain.com
PS C:\Windows\system32> Connect-SPOService -Url https://dubaiaviationcorp-admin.sharepoint.com
lets say deleted user is rogerfederer his domain account is roger.federer in AD and email id was roger.federer@mydomain.com
next should i proceed with which syntax
Set-SPOUser -Site https://mydomain-my.sharepoint.com/personal/roger_federer_mydomain.com -loginName roger.federer@mydomain.com -IsSiteCollectionAdmin $true
or
Set-SPOUser -Site https://mydomain-my.sharepoint.com/personal/roger.federer_mydomain.com -loginName roger.federer@mydomain.com -IsSiteCollectionAdmin $true
once its done can i access his file by the rul
https://mydomain-my.sharepoint.com/personal/roger_federer_mydomain_com/_layouts/15/onedrive.aspx
Also the -loginname is YOUR login or who you want to give access (make the site collection admin) not that user.
- Roger RogerMay 20, 2018Iron Contributor
thanks alot will try and update you
Set-SPOUser -Site https://mydomain-my.sharepoint.com/personal/roger.federer_mydomain.com -loginName myuser@mydomain.com -IsSiteCollectionAdmin $true