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.

Sys user reference field variable not showing disabled users

Moedeb
Tera Guru

I have a requirement to show disabled users on a reference field that is set on the sys_user table.

Currently the way it is setup it only shows enabled users for the 'normal' users & even the itil users, however as the Admin I can see them fine.

Any help would be appreciated. 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Moedeb 

OOTB there is a onBefore Query Business Rule "user query" which filters out the deactivated users. After deactivating this BR you should be able to see all users:

 

MaikSkoddow_0-1666577669380.png

Maik

 

View solution in original post

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi @Moedeb 

OOTB there is a onBefore Query Business Rule "user query" which filters out the deactivated users. After deactivating this BR you should be able to see all users:

 

MaikSkoddow_0-1666577669380.png

Maik

 

Moedeb
Tera Guru

Thanks @Maik Skoddow, I ended up editing the business rule to include those with the itil role rather than disabling it completely.