Thanks, now for the more difficult (but probably still easy!) part...

I want to look for membership in one of 4 groups, each user will only be a member of one of these groups, once I have established which group they are a member of I wish to assign a variable based on the last 3 digits of that groupname. I could do this already using select,case,endselect or if statements but want a neat way.

The groups are called HCAMPUS_***, can I use wildcards in the ingroup() function? and if so how do I tell which group it found?

Nathan