Unable to query for internal users when using a without sharing apex class in an LWC context
Salesforce closed this issue.
Summary
A SOQL query executed from a without sharing Apex class against the User entity only returns rows belonging to the current Network.
- Expected:
Able to query for an internal user when passing in a specific user id inside a without sharing class in an LWC context.
- Actual:
Query returns 0 results.
- Expected:
Able to query for an internal user when passing in a specific user id inside a without sharing class in an LWC context.
- Actual:
Query returns 0 results.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed with 1 report
Nov 30, 2026
Also open in DXP (Digital Experience Platform)
File Upload Screen component in Flows will not work for guest users after "Secure guest user record access" and "Assign new records" are enabled
Solution ScheduledExperience / DXP (Digital Experience Platform)Summer '20Reported Aug 11, 2020222 reports222reports
Large number of apex tests causing CICD failures
Solution ScheduledExperience / DXP (Digital Experience Platform)Winter '22Reported Nov 24, 202174 reports74reports
Files Connect cannot access Folders and files on existing or newly created Files Connect data sources
Solution in ProgressExperience / DXP (Digital Experience Platform)Spring '22Reported Jun 10, 202262 reports62reports
Guest users are unable to render apex:inputField when "Secure Guest User Record Access" is enabled
Solution in ProgressExperience / DXP (Digital Experience Platform)Spring '20Reported May 5, 202062 reports62reports