Field Level Security in SOQL With SECURITY_ENFORCED
By using With SECURITY_ENFORCED clause in SOQL we can enforce the field and object level security in SOQL. To use this, just add the WITH SECURITY_ENFORCED clause in SOQL SELECT queries. If there are any fields or objects referenced in the SELECT…