While Creating Hr case from backend in the Subject person able to see user record active and and inactive.

Mahesh033
Tera Contributor

Hi ,

While Creating Hr case from backend in the Subject person able to see 2 user records active and and inactive.

requirement is to show only active users in the subject person filed. please help

 

3 REPLIES 3

Virag Shah2
Tera Contributor

By default, there is already a restriction OOTB for non-admin users. They can see the active user records only.

So please check if you are creating a case via admin or non-admin user.

If it still does not work, you may have to check the reference qualifier where the script include hrUtils is being used and modify the function as per your requirements.

 

Please mark help/correct. Thanks.

Vamsi Sreenivas
Giga Guru

Hi, by default you can select only active users in subject person field. If you are seeing both active and inactive users then go to Configure dictionary of Subject Person field and see the reference qualifier. Likely that would have changed.

 

Regards,

Vamsi S

Susan Britt
Mega Sage
Mega Sage

Hi Candy,

As the others mentioned, OOB user queries are limited to active users only for users that do not have the admin or user_admin roles.  This is controlled by the "user query" Business Rule.  Then you can also go to the "Case Creation Configuration" module and override the default filter on cases created from the backend (e.g., active = true).