Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to show only incidents created by currently logged in user?

Community Alums
Not applicable

Hi,

I am in a scenario to show only logged-in user-created incidents. I tried it, but it is not working. Kindly help.

 

1.png

 

2.png

 

if(current.sys_created_by == gs.getUserID()){
	answer = true;
}
else{
	false;
}

 

Regards

Suman P.

10 REPLIES 10

And if you want to something even more fun when testing - Check the plugin "Access Analyzer"

It should be in PDI's - search application module for Access analyzer

SimonChristens_0-1734093551438.png

In there you can "impersonate" other users - choose tables, records etc and then analyze their permissions - ACLs that evaluates true/false, Query Business rules etc.

Its quite nice I think

SimonChristens_1-1734093642598.pngSimonChristens_2-1734093683519.png