Description
System administrator or Users who has the permission to deactivate a User is receiving an error, 'This user is the default owner of records created by guest users and can’t be deactivated' when deactivating a User.
This error implies that the User is being used as the default owner of records created by guest users in an Experience or Force.com Site.
Resolution
In order to resolve this you must select another User as a default owner of records created by guest user in a community.
Select another User as the default owner of records created by a guest user of a community
- Navigate to the Preferences menu of the community
In Salesforce Classic: Setup | Customize | Digital Experiences | All Sites | Workspaces
In Lightning Experience: Setup | Feature Settings | Digital Experiences | All Sites | Workspaces
In Lightning Experience: Setup | Feature Settings | Digital Experiences | All Sites | Workspaces
- Click on Administration tile.
- Click on Preferences.
- Under 'Record Ownership' section, change the default owner to another User.
- Click Save.
Even after removing default owner and you are still encountering the issues then follow the steps to remove the default owner from Force.com Sites.
You can navigate to the Force.com Site within Setup.
- Go to Setup
- On the Quick Find Box, type in Sites
- Select Sites under Sites and Domains
- Click on the Site Name
- Click Edit
- Change the Default Record Owner
- Click Save.
You should now be able to continue deactivating the User without any error!