As part of your offboarding process, you may wish to maintain control or transfer ownership of various resources created within a Microsoft 365 user account.
Within this article you will find instructions for completing this process with various Microsoft 365 services.
OneDrive access can be provided to a user by making them a site collection administrator for the offboarded user's personal site. This can be accomplished via the web or via PowerShell.
More features
menu item from the menu.Open
under the User Profiles section.Manage user profiles
option under the People section.Find
.Manage site collection owners
The SharePoint Online Powershell module can be used to add the required permissions as in the example below.
$AdminURL = "https://winadmins-admin.sharepoint.com"
$OffboardedUserURL = "https://winadmins-my.sharepoint.com/personal/justin_winadmins_io"
$AddingUser = "someoneelse@winadmins.io"
Connect-SPOService -Url $AdminURL
Set-SPOUser -Site $OffboardedUserURL -LoginName $AddingUser -IsSiteCollectionAdmin $True
Once completed, the offboarded user's OneDrive will be accessible to the specified user via the web.
It can be accessed via a link similar to: https://winadmins-my.sharepoint.com/personal/justin_winadmins_io
Migrating Microsoft Forms is done via a special delegation page.
https://forms.office.com/Pages/delegatepage.aspx?originalowner=[offboarded user's email address]
https://forms.office.com/Pages/delegatepage.aspx?originalowner=justin@winadmins.io
Source: Microsoft Docs
Ownership of Power Automate flows can be added via PowerShell using the Microsoft.PowerApps.Administration.PowerShell package.
First, get the GUID of the offboarded user:
$OffboardedGUID = (Get-AzureADUser -ObjectId justin@winadmins.io).ObjectId
Then, get the GUID of the user to be added:
$AddingGUID = (Get-AzureADUser -ObjectId notjustin@winadmins.io).ObjectId
Then, get all of the offboarded user's flows and add the new owner:
Get-AdminFlow -CreatedBy $OffboardedGUID | Set-AdminFlowOwnerRole -PrincipalType User -PrincipalObjectId $AddingGUID
As a flow can have multiple owners, this is effectively adding an owner rather than replacing them.