- 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
12-07-2017 09:30 PM
Hi,
I tried putting the same code in User Query business rule as below just replaced the sys_id with my catalog item's sys_id.
- if(!gs.hasRole("admin"){
- if(current.getEncodedQuery().indexOf('sys_id=ae20225e0a0a3cac00b8ac8dbc5c018a') >=0)
- {
- current.addQuery("active", "true");
- }
- }
But when we open that catalog item it always returns -1, that means it is not finding that sys id. what should be the issue. Also it is not auto populating the related values like Requested for manager, Requested for email etc. Could you please explain me what else i need to do to auto populate related values for inactive users on catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2014 05:51 PM
I see 2 approaches to this:
1) Do something similar to what solutioner now suggested. Create a new variable to capture the user name of the user offboarding
2) Inactivate the global business rule and add reference qualifiers to fields which reference the sys_user table
- Caller
- Assigned To
- Requested For
etc
Personally I would go with option 2, could be setup fairly quick.