A trigger on a custom object runs when a portal user does some operation. This trigger calls a public static method from a public apex class which does not have with sharing defined. I need to access high volume portal users profile inside static method in class which is used from Trigger. Will i get portal user profile always ? I am getting inconsistent results.
1 Answer
By definition a HVCP user doesn't have any sharing via Roles. They get their access to their account and related records through implicit sharing. Other records they get access to will be via sharing groups. The implicit sharing is likely what's causing the inconsistent results.