As an admin, you can remove previously granted access to a user’s OneDrive by following these steps:
- Sign in to the Admin Center:
- Log in to the Microsoft 365 admin center using your global admin or SharePoint admin credentials.
- 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.
- 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.
- 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.
- Remove Access:
Alternatively, you can use PowerShell to revoke access:
- Connect to SharePoint Online:
Connect-SPOService -Url https://yourdomain-admin.sharepoint.com -Credential (Get-Credential)
- Revoke Access:
Remove-SPOUser -Site https://yourdomain-my.sharepoint.com/personal/username_domain_com -LoginName user_to_remove@domain.com