Checking for regex match of attribute values in a script

IAM David Bantz dabantz at
Wed Feb 21 13:12:16 EST 2018

We "ValueMap" memberOf values with regex to extract (possibly multiple)
attribute values.*
Not exactly what you asked for but a possible alternative depending on your
precise need(s).

David Bantz




          <SourceValue ignoreCase="true">


On Wed, Feb 21, 2018 at 7:23 AM, Wessel, Keith <kwessel at> wrote:

> Hi, all,
> We've got a scripted attribute definition that checks for several values
> of memberOf with memberOf.getValues().contains(). I'd like to convert
> this to use a regex to match partial group names....
> Is there a way to do a regex match on attribute values with contains()? Or
> do I need to iterate through the attribute values with a loop to do this
> comparison? Or is there another method on collections that I should be
> using other than contains()?
> Thanks,
> Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list