2

In our last Salesforce Security Review we have faced an issue related to the ommitted sharing declarations of inner classes acting as a wrapper.

We have passed this review for years so I guess some new kind of criteria must have been included recently.

These inner wrapper classes are not accessing data anyhow so I wanted to know which would be the recommended sharing declaration (probably with sharing or inherithed sharing) for them in order to pass the Salesforce Security Review or, if it would be enough to report them as False Positives.

1
  • 2
    Related question here, I prefer inherited sharing, with sharing also would be fine though.
    – Raul
    Commented Jan 5, 2021 at 13:46

1 Answer 1

1

Related question: Do I need to define sharing for inner classes?

I prefer inherited sharing, with sharing also would be fine though.

if it would be enough to report them as False Positives.

No, it's better to have small number of false positives for the security team to review.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .