Dec 01 2023 07:27 AM
Hello,
If I post an Excel File... since a few weeks I see the old Admin everytime as an extra owner.
This Admin are deleted on our Company.
And 30 days are over and he isn't listed on "Deleted users" in AdminBackend.
Many users are confused to read this name as owner on there own OneDrive-Files.
How can I remove this error-display =? or is this not an Error ? But the User is deleted....
pls help
Dec 02 2023 12:14 AM
If you are seeing an old admin listed as an owner on Excel files in OneDrive or SharePoint, and the user has already been deleted from your organization, there are a few potential explanations and steps you can take to resolve this:
1. Check Permissions:
2. File Version History:
3. Manage Access:
4. Check External Sharing:
5. Use SharePoint Online Management Shell (Admin):
6. OneDrive/SharePoint Recycle Bin:
7. Restore a Previous Version:
Remember to carefully review and document any changes you make to file permissions or settings. If you are unsure about a particular step, it may be a good idea to involve your IT support.
Note: My knowledge of the topic is limited, but since no one has answered yet, even though it has been read many times, I posted the question in various AIs and found the upper suggested steps/solutions for you. The proposed solution is untested. Maybe it will help you further in your project, if not please just ignore it.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
Dec 14 2023 02:17 AM
Dec 14 2023 03:07 AM
If the old admin continues to appear as an owner in every file in the personal OneDrive files of all users, and the previously mentioned steps did not resolve the issue, you may need to consider more advanced troubleshooting steps.
Here are some additional suggestions:
1. PowerShell Script:
Powershell code (is untested):
# Connect to SharePoint Online
Connect-SPOService -Url https://yourorganization-admin.sharepoint.com
# Iterate through each user's OneDrive
$users = Get-Content "C:\Path\To\UserList.txt" # Provide a list of user accounts
foreach ($user in $users) {
$userOneDriveUrl = "https://yourorganization-my.sharepoint.com/personal/$user_domain_com"
$userFiles = Get-SPOSite -Identity $userOneDriveUrl
foreach ($file in $userFiles) {
# Check and modify ownership as needed
# Your logic to update ownership goes here
}
}
2. SharePoint Online Management Shell:
3. Advanced Permissions Audit:
4. Microsoft Support:
Before implementing any scripts or making changes, ensure you have a backup and test in a controlled environment to avoid unintended consequences. The text, steps and code was created with the help of AI.
Dec 14 2023 04:46 PM
@NikolinoDE "if there are previous versions of the file where the old admin is listed as an owner. If so, you may need to restore the version without the old admin's ownership."
If this is the cause then it seems like a bug. Old owners of the document should not be recorded in perpetuity. It is not appropriate to restore an old version of the document that needs to be retained for auditing purposes.
I came here because I have a bunch of Excel sheets with long out of date owners, who are not recorded in the document properties, and don't have access to the SharePoint where they are stored.
Dec 15 2023 03:11 AM