Skip to main content

Hi there,

 

I posted a question in one of yours session in SF DX and you asked me to post here.

 

1. I would like to know if we can use "inherited sharing" with a post install class?

Example: ClassA is the PostInstall and I have class B that I want to set the inherited sharing, because I use that in ClassC which is with sharing.

 

2. Is there a way to know all if the user has access to all the fields at once instead of checking each field?

I was wondering if there something like Account.getAllUpdatableFields() or getAllCreatableFields() or something like "insert account SECURITY_ENFORCED"

 

Thanks in advance!

2 件のコメント
  1. 2021年6月24日 12:12

    1. Have never built a PostInstall Apex class, so I do not the answer to this. But it should not be hard to create a test. If it can be done, then I think it would be a good use case.

     

    2. Are you familiar with the StripInaccessible feature? This could help you implement what you are trying to accomplish

0/9000