- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 12:11 PM
Hi All,
i am looking for a User criteria on catalog item that will be available for only Employee type Employee and active True.
how to filter the users with employee type?
usually we add groups and role on the available for but in this case we need Employee type Employee and active user.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 12:36 PM - edited 02-20-2024 12:53 PM
Hi @Ram050670
You will need to create a New User Criteria (user_criteria) record.
- In the Application navigator, Navigate to the Service Catalog->Catalog Definition->User Criteria
- Check the Advanced check box.
- Write the script as you return the desired filter user.
- Save the Record.
- Go to your catalog item in the Available for related list and Edit the list and enter the user criteria you created.
Script:
This will resolve your requirement.
Regards,
Ashir Waheed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:10 PM - edited 02-20-2024 01:10 PM
tried this it worked for me:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:10 PM - edited 02-20-2024 01:10 PM
tried this it worked for me:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:11 PM
I believe you will run into issues with using the gs.getUser() function in user criteria. I would recommend using the approach I outlined above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 01:13 PM
i will try and see.