Issue
The OOB 'Organization Chart(my_org_chart)' service portal widget allows users to search for and display inactive users.
In the record picker drop-down, if an user search for an inactive user, the result still appears
Cause
The record picker of the 'Organization Chart' widget doesn't have the check for active users.
Resolution
Clone and modify the OOB 'Organization Chart' widget
1) Clone the OOB 'Organization Chart' widget.
2) In the cloned widget, within the Body HTML template, modify the second line as follows:
Current Code:
<sn-record-picker field="c.user" table="'sys_user'" display-field="'name'" value-field="'sys_id'"
display-fields="'email'" search-fields="'name'" page-size="100" >
Change it to:
<sn-record-picker field="c.user" table="'sys_user'" display-field="'name'" value-field="'sys_id'"
display-fields="'email'" search-fields="'name'" page-size="100" default-query="'active=true'" >