Help with MappedAttributeDefinition
Mohamed Lrhazi
lrhazi at cua.edu
Thu Aug 18 23:25:57 UTC 2022
Hello,
I am trying to add an attribute that resolves to "1" if the user is a
student, but "0" otherwise... I thought it would be as simple as below....
but this actually returns "1" and "0" if the user is both a student and
also a member or any other affiliation....
How do I implement this logic?
Thanks a lot!
Mohamed.
<AttributeDefinition id="isEligible" xsi:type="Mapped">
<InputDataConnector ref="sqliteConnector" attributeNames="
eduPersonAffiliation"/>
<DefaultValue>0</DefaultValue>
<ValueMap>
<ReturnValue>1</ReturnValue>
<SourceValue>student</SourceValue>
</ValueMap>
<AttributeEncoder xsi:type="SAML1String" name="isEligible" encodeType="false
" />
<AttributeEncoder xsi:type="SAML2String" name="isEligible" friendlyName="
isEligible" encodeType="false" />
</AttributeDefinition>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20220818/8397665a/attachment.htm>
More information about the users
mailing list