OneDrive permissions

Glenn Maxwell 12,876 Reputation points
2023-07-05T21:32:01.45+00:00

Hi All

When an employee leaves the company i want to share his onedrive to the users manager.In the below settings

Sharepoint Admin Center-->user profiles->My Site Settings-->Setup My Sites-->Enable My Site Secondary Admin-->Secondary Admin

How do i point here to the manager role in Secondary Admin, Experts guide me.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,190 questions
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,856 Reputation points Microsoft External Staff
    2023-07-06T08:53:01.63+00:00

    Here are two methods to add site collection administrator to OneDrive for Business site collection.

    1.Go to SharePoint Admin Center -> More features -> User profiles -> Select the user profile you want -> Manage site collection owners -> Click browser -> Select the people you want.

    1

    2

    2.You could use following PowerShell to achieve this.

    $AdminSiteURL="https://tenant-admin.sharepoint.com"
    $OneDriveSiteUrl="https://tenant-my.sharepoint.com/personal/emily_tenant_com"
    $SiteCollAdmin="******@tenant.com"
     
    #Get Credentials to connect to SharePoint Admin Center
    $Cred = Get-Credential
     
    #Connect to SharePoint Online Admin Center
    Connect-SPOService -Url $AdminSiteURL -credential $Cred
     
    #Add Site Collection Admin to the OneDrive
    Set-SPOUser -Site $OneDriveSiteUrl -LoginName $SiteCollAdmin -IsSiteCollectionAdmin $True
    Write-Host "Site Collection Admin Added Successfully!"
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.