The simplest solution is
code:
IF INGROUP('Group_A')
$rc=ADDPRINTERCONNECTION('\\server\printer')
ENDIF

with an IF clause for each distinct group-printer combination. Of cource, one can combine multiple groups with AND or OR in the condition.
You can get more fancy by checking the registry for printers that the user already mapped and only map those that do not yet exist, but I'd just skip that part since the end result would be the same.
_________________________
There are two types of vessels, submarines and targets.