using Transform AttributeResolver to get first value of multi-value attribute

Cantor, Scott cantor.2 at osu.edu
Tue Mar 22 09:59:52 EDT 2016


> <AttributeResolver type="Transform" source="displayName">
>     <Regex match="^(.+) (.+)$" dest="givenName">$1</Regex>
>     <Regex match="^(.+) (.+)$" dest="sn">$2</Regex>
>     <Regex match="^(.+) (.+)$">$2, $1</Regex>
> </AttributeResolver>
> 
> It's almost the same thing I'm trying to achieve; splitting up displayName by a
> regex and return the values givenName and sn.

Taking one value of an attribute and turning it into two new attributes. That isn't at all the same thing. A rule operates on one value at a time, always.

-- Scott




More information about the users mailing list