is_group_list_for_machine db machine_idWhat it does:
Returns a list of grou-_id/group_name/group_type triplets belonging to a machineDefined in: /web/philip/tcl/ischecker-defs.tcl
Source code:
return [database_to_tcl_list_list $db "select is_group_machine_map.group_id, user_groups.group_name, user_group_types.pretty_name as group_type from is_group_machine_map, user_groups, user_group_types where user_groups.group_id = is_group_machine_map.group_id and is_group_machine_map.machine_id = $machine_id and user_groups.group_type = user_group_types.group_type"]