function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matthew MarshMatthew Marsh 

Change a Lookup Filter Based on Profile

Hello All, 

I have an issue where I have a case owner that only works on cases from one account. I have a situation where occasionally that user needs to change ownership to either another person or ONLY the queue that is also only associated to that specific account. Currenly, these users each have a profile that specifically links their access rights to that account and its associated cases.

When the user attempts to switch an owner, they are allowed to move the case freely between all the users and all of the queues available, which is a serious security problem for my model.

Is there a way to restrict which queue a case can be transferred to? What would be the best way to start solving this problem?

Thanks in advance!
Best Answer chosen by Matthew Marsh
NagendraNagendra (Salesforce Developers) 
Hi Matthew,

sorry for this issue you are encountering.

May I suggest you please check with below link from the success community with a similar discussion. Hope this helps.

Thanks,
Nagendra