How to use if (gs.getUserName().startsWith('abc')) in Knowledge Articles User Criteria.
The below mentioned code is not working for user criteria. For providing read only access to users who's ID startswith either A or B. if(gs.getUserName().startsWith('A') || gs.getUserName().startsWith('B')){ answer = true;}else{ answer=false;}