How to Remove Previously Granted Access to a User’s OneDrive

As an admin, you can remove previously granted access to a user’s OneDrive by following these steps:

  1. Sign in to the Admin Center:
    • Log in to the Microsoft 365 admin center using your global admin or SharePoint admin credentials.
  2. Access SharePoint Admin Center:
    • In the left pane, select Admin centers > SharePoint. If you don’t see the list of admin centers, click on Show all.
  3. Manage User Profiles:
    • In the SharePoint admin center, select More features in the left pane.
    • Under User profiles, select Open.
    • Under People, select Manage User Profiles.
  4. Find the User:
    • Enter the name of the user whose access you want to revoke and select Find.
    • Right-click the user and choose Manage site collection owners.
  5. Remove Access:

Alternatively, you can use PowerShell to revoke access:

  1. Connect to SharePoint Online:
Connect-SPOService -Url https://yourdomain-admin.sharepoint.com -Credential (Get-Credential)
  1. Revoke Access:
Remove-SPOUser -Site https://yourdomain-my.sharepoint.com/personal/username_domain_com -LoginName user_to_remove@domain.com