Field Level Security In Async Contexts

Use when async Apex (Queueable, Batch, Schedulable, @future) needs to honor the originating user's field-level security but the job runs in a different security context than the user who initiated it. Triggers: 'fls bypassed in batch apex', 'queueable runs as wrong user', 'stripInaccessible in async returns full record', 'WITH USER_MODE evaluating against system user', 'scheduled apex sees fields the original user could not'. NOT for synchronous FLS enforcement — use apex/apex-stripinaccessible-and-fls-enforcement. NOT for the with/without sharing keyword decision — use apex/apex-with-without-sharing-decision.

PranavNagrecha 6498637 7 files · 46.0 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/field-level-security-in-async-contexts commit 64986379c2

Frequently asked questions

npx skillmds add pranavnagrecha/field-level-security-in-async-contexts