Reference field to show inactive users for catalog item and assoc. tasks

Blair5
Tera Guru

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?

1 ACCEPTED SOLUTION

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>''


View solution in original post

26 REPLIES 26

solutioningnow
Giga Guru

Hi,



There is one query business rule on User table which restricts ITIL Users to view only Active Users. You might need to deactivate that BR to resolve your issue. Business Rule named 'user query'.



Please mark answer as correct/helpful, if it was really helpful 🙂



Regards,


Solutioner


Logo.png


Enhance Knowledge NOW@ www.solutioningnow.com


http://www.solutioningnow.com/


I don't want this to be a global change, just for this one specific catalog request and it's associated tasks


Bhavesh Jain1
Giga Guru

Solution for your problem is addressed here :


» Fixing the Fatal Flaw of Before Query Business Rules




Regards,


Bhavesh


IGate-logo.png


http://www.igate.com


This seems like it would help - but it doesn't. In Mark's article -- is he suggesting adding a NEW business rule?