Could any one please elaborate, how we can run a trigger according to a user. I heard it from some friends, that we can call trigger in respect to users with the help of Custom settings, could any one will give an example in Simple | Understandable language.

2 Answers 2


This is someone else's answer but here is a 2015 article on the topic. See the "Triggers" portion. https://www.absi.digital/en/Articles/Dev-Zone/personalize-automation-salesforce

  • Thanks Peter, Should I create a list type custom settings or hierarchy type ?
    – Lerner
    Feb 16, 2018 at 8:21
  • hierarchy because sounds like you need user-specific settings and hierarchy supports that Feb 16, 2018 at 15:09

Store list of user details like user id , name on the custom settings. Then use that custom setting inside trigger to validate based on the current user is in the list or not.

Not the answer you're looking for? Browse other questions tagged or ask your own question.