Page tree

Previous Stable Release

Please note that the V3 release branch is now the previous stable release, with the current stable releases from the V4 branch.
Support for V3 will end on Dec 31, 2020.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

The Mappped attribute definition performs a many-to-many mapping from source attributes values according to a series of mapping statements. If an input value matches no mapping rule, then a default can be provided.

Schema Name and Location

This xsi:type is defined by the urn:mace:shibboleth:2.0:resolver:ad schema, which is located at


Any of the common attributes can be specified.

Child Elements

Any of the common child elements can be specified. In addition the following elements are supported:

<DefaultValue>0 or 1Describes the action to be taken if a value does not match any of the <ValueMap> elements that follow. If the passThru attribute is set to "true", then the input value is passed through untouched, otherwise the contents of the element are used as the default value.
<ValueMap>1 or moreSee below.


The <ValueMap> element supports two child elements:

1The content is used as the output value if any of the source values match. Replacement rules from java.util.regex.Matcher.replaceAll(java.lang.String) apply.
1 or more

The content is matched against each input value and if it matches, then the <ReturnValue> is output.

The partialMatch attribute (defaults to false) allows partial matches to be performed (any string which contains the pattern is a match). If partialMatch is false then the pattern is matched as a Java Regular Expression and all matches are replaced by the return value.

The ignoreCase attribute (default false) allows case insensitive comparisons to be made. This is only valid for regular expression matching.


<resolver:AttributeDefinition id="mapped" xsi:type="ad:Mapped" sourceAttributeID="uid">
    <resolver:Dependency ref="uid" />
    <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="" friendlyName="Mapped" encodeType="false" />
    <ad:DefaultValue passThru="true"/>
		<ad:SourceValue partialMatch="true" ignoreCase="true">fred</ad:SourceValue>
  • No labels