Skip to content
Bug Barometer

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.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Closed with 1 report

    Nov 30, 2026

Also open in DXP (Digital Experience Platform)