Unfortunately, using it in this example is a bit tricky (we cannot directly pass it to the Size command, which triggers the coset enumeration, because Size cannot deal with failure of the enumeration). But this should work. He brings 4+ years experience in developing, designing and architecting solutions on various technologies including Salesforce Cloud, Javascript, Lightning, Apptus CPQ & Salesforce CPQ. Sanjay has earned 100+ Trailhead badges and the following Salesforce certifications: Developer, Einstein, Conga Composer & Copado. View my complete profile For example, to bypass an Apex trigger for a set of users from the same profile, it is best practice to use custom permission instead of hardcoding the users’ Ids or usernames. Using custom permission (assigned to users by using Permission set), you can easily assign custom permission to users and then bypass Validation rule, Process Builder or Apex triggers.