# Under what user context do Apex Triggers run (System Mode vs User Mode)?

**Topic:** Apex Trigger · **Difficulty:** Medium · **Asked at:** Infosys, Capgemini, Wipro · **Tags:** apex-trigger, trigger, security, sharing

Read it on the site: https://www.forcechallenges.com/interview-questions/under-what-user-context-do-apex-triggers-run-system-mode-vs-user-mode

## Answer

Apex triggers run in **system mode**: object permissions (CRUD) and field-level security of the current user are not enforced, so the trigger can read and write data the user can't.

Record sharing is not enforced by default either; sharing depends on the declaration of the handler classes (`with sharing`, `without sharing`, or inherited). To enforce user permissions explicitly, use `WITH USER_MODE`, `Security.stripInaccessible()`, or `AccessLevel.USER_MODE` in DML.

---
Source: ForceChallenges · last updated 2026-10-21
