Invoke Record Type Security Explicitly

Hi all,

Is there any way to invoke the Record Leve Security of a Record type?

I mean passing manually in code a user like queryRecordtype (userToApply:user)

Givin more context:

We have a set of Web APIs that will be invoked by other system, we have set up the authentication to be via "API KEY" in this scenario the API is tied to a service account, but the problem here is that we have in configured the Record Level Security Rules to manage what groups of users can see the information.

We want to expose cases but since the Authentication is via API key (tied to a serviceaccount) we loss the functionality of Record Level Security. We tried with passing the User ID as queryParameter/Header in the API but we need a way to apply explicitly the Security  of a RT.

Thanks in advance for your help.

  Discussion posts and replies are publicly visible