source:push fails with an error "no user named xxx found" when there is a username in source code
Salesforce says this works as designed.
Summary
source:push fails with an error "no user named xxx found" when there is a username in source code.
Expected behavior is it should replace the username with scratch org's admin name rather than throwing an error.
Expected behavior is it should replace the username with scratch org's admin name rather than throwing an error.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Working as Expected
Nov 30, 2026
Also open in Access Control Services
Enabling critical update "Restrict Read Access to Lookup Record Names" blocks adding queue name to the case history
Solution in ProgressPlatform / Access Control ServicesWinter '21Reported Jan 7, 202169 reports69reports
Unable to select a role in the Role and Subordinates lookup field in the Sharing Rule setting
Solution ScheduledPlatform / Access Control ServicesSpring '24Reported Apr 24, 202440 reports40reports
Invalid picklist error when deploying the State and Country picklists' Country Code as criteria for a Sharing Rule
In ReviewPlatform / Access Control ServicesSummer '19Reported Aug 23, 201939 reports39reports
Not all Roles/Public Groups are displayed in the Define User Criteria "Role" dropdown while editing policy criteria under user access policy
Solution DeployingPlatform / Access Control ServicesReported Jun 12, 202438 reports38reports