System mode is when the apex controller executes with no user permission enforced. By user permission, it means the user’s security and sharing settings.
There are various ways to enforce user mode or system mode, two of them are:
- with sharing: Security & Sharing settings will be applied.
- without sharing(By default): Security & Sharing settings will not be applied.