Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 06:38 AM
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 09:59 AM
You can create the query from the user list view and then use in a script
For ex
var user = new GlideRecord('sys_user');
user.addEncodedQuery('locationISEMPTY');
user.query();
while (user.next())
{
gs.info('Location is empty for '+user.user_name);
}
Please mark this response as correct or helpful if it assisted you with your question.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2023 11:20 AM
Thank you Sanjiv !!