Access Permissions Should Be Checked Before A SOQL/SOSL/DML Operation

< 1 min read

Impact Area

Manageability

 

Severity

Medium

 

Affected Element

Apex  Class

Apex Trigger

Rule ID

SF-0033

Impact #

Since Apex runs in system mode not having proper permissions checks results in escalation of privilege and may produce runtime errors.

Remediation #

Avoid runtime errors by explicitly checking for permissions before SOQL/SOSL/DML statements.

Time to fix #

45 mins

Updated on March 21, 2025
Table of contents
Was it helpful ?