- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2014 08:01 AM
I found a discussion regarding inactive users being shown on a catalog item. --> Reference field not showing inactive users for our asset team
I'd like to show the inactive users on the catalog item (Offboard a user) and all subsequent tasks. The discussion I found addresses catalog item part, but not the TASK part. Does anyone have any ideas?
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2014 08:11 AM
on the existing br you only need to modify ONE line.. find the if line that kicks it off and change it to
if (!gs.hasRole('user_admin') && !gs.hasRole('view_inactive_user') && (current.getEncodedQuery().indexOf('sys_id>')== -1))
<this adds the encoded query requirement to it>
then just add the ref qualifier to ANY reference field you want to show disabled users of sys_id>''

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 06:56 AM
Mark has asked to update the existing Business rule.
Add your conditions like catalog_item.....in the encoded query part.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 08:48 AM
Would it be...?
if(!gs.hasRole("admin"){
if(current.getEncodedQuery(sys_id=ae20225e0a0a3cac00b8ac8dbc5c018a^ORsys_id=a347dac30a0a3cac004f1ab999174e31){//sys ids of catalog items
current.addQuery("active", "true");
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 09:14 AM
if(!gs.hasRole("admin"){
if(current.getEncodedQuery().indexOf('sys_id=ae20225e0a0a3cac00b8ac8dbc5c018a') >=0)
{
current.addQuery("active", "true");
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 10:33 AM
I did exactly as above and an end user is not able to search for inactive users on this particular catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 10:44 AM
What role does the person who uses this catalog item have? itil? Will any ess users be able to use this catalog item?