you could imagine also to list groups and script name in a text file.

example :
group1;my script for group1.kix
group2;my script for group2.kix
group3;my script for group3.kix

then you read this file and test for each line if user is in group
(comment a line with a ";" )
Code:
$handle=freefilehandle()
if open($handle, "ListGroup.txt",2)=0
$line=Readline($handle)
while not @error
$line=trim($line)
if left($line,1) <> ";"
$array=split($line, ";" )
$group = $array[0]
$scriptname = $array[1]
if InGroup($group)
if exist($scriptname)
call $scriptname
endif
endif
endif
$line=Readline($handle)
loop
$=close($handle)
endif



This code is not very secured and I haven't tested it but it could be a good start.

For performances, it is important to know the average of groups people are in and the average of groups associated with a script.
_________________________
Christophe