How to find all the users who has fulfiller access using client script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 12:52 PM
Hi
How to find all the users who has fulfiller access using Glide scripting?
var arrUsers = [];
gs.log('1step');
//Need to lookup user id later
var usr = new GlideRecord('sys_user');
//Need to get sys_id of the group
var grpSysId = cmGetSysID('ITIL Users','sys_user_group');
//Need to look up the Group Members
gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group',grpSysId);
gr.query();
while (gr.next()){
usr.initialize(); //Utilise the 'sys_user' table
usr.addQuery('sys_id',gr.user);
usr.query();
while (usr.next()) {
arrUsers.push(usr.user_name + "");
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 01:00 PM
What are you trying to achieve is not clear
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 01:02 PM
Hi, can you clarify the meaning of 'fulfiller access using Glide scripting'?
Users would not normally have direct access to scripts, but scripts run as a result of user access.
Perhaps a better starting point would be to check table 'sys_user_has_role' and identify the users who have been assigned roles necessary to deliver fulfiller functionality - normally itil role