How to make inactive user visible for non-itil users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 07:16 AM
Hi,
how can I make inactive user visible for non-itil users under a reference field of a particular catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 07:38 AM
These likely can't be seen due to a before Query Business Rule on the sys_user table. If you have this, change the script to:
function executeRule(current, previous /*null when async*/) {
var query = current.getEncodedQuery()
if (gs.getSession().isInteractive() && !query.includes('activeANYTHING')) {
current.addActiveQuery();
}
})(current, previous);
where you probably just have the addActiveQuery line now.
On the reference variable for the particular Catalog Item, and any similar cases that follow, add to the advanced reference qualifier:
activeANYTHING
preceding it with a ^ for AND if you already have something there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 09:28 AM
Hi @Puneet4418 ,
Go to business rules and search with name “user query” you follow steps suggested by Brad.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand