thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Advanced

Security.stripInaccessible

Apex method that removes fields the user cannot access from records instead of throwing an error.

Definition

stripInaccessible takes an AccessType (READABLE, CREATABLE, UPDATABLE, UPSERTABLE) and records, returning sanitized records and the removed fields, enabling graceful degradation.

Example

SObjectAccessDecision d = Security.stripInaccessible(AccessType.READABLE, contacts);

Exam tip

Use stripInaccessible when you want to silently drop inaccessible fields rather than fail.

Related terms