The first way is the correct way. Remember that it's using the standard targeting system the rest of ULX uses. that is, it would look like "%group1,%group2,%group3". If you want to ignore inheritance it would be "#group1,#group2,#group3" or a combination thereof.