Questions tagged [stripinaccessible]
The stripinaccessible tag has no usage guidance.
4
questions
3
votes
2
answers
304
views
Why is stripInaccessible Removing Fields in Tests
I have an Apex test that is querying Task records. Custom fields on Activity are being removed by stripInaccessible.
The test is not using a runAs, so it should be running in system mode and should ...
3
votes
1
answer
5k
views
WITH SECURITY_ENFORCED and Security.stripInaccessible in a single SOQL
Premise: I followed WITH SECURITY_ENFORCED, Security.stripInaccessible and comparison before designing my Apex class for querrying a few records.
Doubt:
I implemented my SOQL as
Security....
0
votes
1
answer
93
views
StripInaccessible not removing fields
I am system administrator. I have removed edit access of contact fields Department, Assistant.
I am executing this code:
@AuraEnabled
public static SObjectAccessDecisionWrapper updateRecords(List<...
1
vote
0
answers
429
views
Validate CRUD permission before SOQL/DML operation (rule: Security-ApexCRUDViolation)
I can see an unexpected behavior with PMD rules when working with the stripInaccessible method,
I have tried to insert List of Order records in my APEX class like below,
private List<Order> ...