Remedyart, you had it nearly right, but you need to use $GROUPIDS$ instead of $GROUPS$ (and replace the colon with a semicolon at the end), so:
*$GROUPIDS$ LIKE "%;100000042;%"* should do the trick. $GROUPS$ returns the *names* of the groups that the current user belongs to, but without any separating syntax. This makes it unreliable if you have any groups with that have names which are substrings of other group names. For example, if you have a group call "Operators" and another called "Special Operators", there's no way (using $GROUPS$) to tell if a user is in *just* the "Operators" group, since $GROUPS$ LIKE "%Operators%" will also return true if the user is only in the "Special Operators" group. This is why they introduced the newer $GROUPIDS$ keyword, which *does* include separating syntax (semicolons). In fact, more recently*** they went so far as to ensure the that there are semicolons at the both the beginning and end of the string, so that a comparison such as $GROUPIDS$ LIKE "%;<group id>;%" will always work. [*** My vague recollection is that this wasn't always so. I think there didn't used to be starting or ending semicolons, forcing you to use much more painful syntax: ($GROUPIDS$ LIKE "100000042;%) OR ($GROUPIDS$ LIKE "%;100000042;%) OR ($GROUPIDS$ LIKE "%;100000042")] -charlie On Thu, Jan 23, 2014 at 12:09 AM, SUBSCRIBE arslist Jabbie < [email protected]> wrote: > We did exactly the same thing using group ID - I think your additional > syntax is interfering ... ie take out semi-colons and colons and just leave > wild cards around the group ID. > > Just use $GROUPS$ LIKE "%100000042%" and I think you'll find it will work > fine. > > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > "Where the Answers Are, and have been for 20 years" > _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

