In the admin at the discount coupons we add a field where you can enter the ID numbers of the customer groups to which this discount code applies. Customer groups that are not entered will receive the error message "Sorry, this code is not allowed for your customer group!"