<div dir="ltr">We "ValueMap" memberOf values with regex to extract (possibly multiple) attribute values.*<div>Not exactly what you asked for but a possible alternative depending on your precise need(s).</div><div><br></div><div>David Bantz</div><div><br></div><div>*e.g.,<br>




<span></span>





<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><font color="#000000" style="background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space" style="">        </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures">ValueMap</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">></span></font></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><font color="#000000" style="background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">          </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><ReturnValue></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">arn:aws:iam::$1:role/$2,arn:aws:iam::$1:saml-provider/OITshibb</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></ReturnValue></span></font></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><font color="#000000" style="background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">          </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><SourceValue </span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures">ignoreCase</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">=</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures">"true"</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">cn=aws:([0-9]+):role:(.*?),ou=group,dc=alaska,dc=edu</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></SourceValue></span></font></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><font color="#000000" style="background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">        </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures">ValueMap</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">></span></font></p>


<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 7:23 AM, Wessel, Keith <span dir="ltr"><<a href="mailto:kwessel@illinois.edu" target="_blank">kwessel@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all,<br>
<br>
We've got a scripted attribute definition that checks for several values of memberOf with memberOf.getValues().contains(<wbr>). I'd like to convert this to use a regex to match partial group names....<br>
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()?<br>
<br>
Thanks,<br>
Keith<br></blockquote></div></div></div>