<div dir="ltr">Hello,<div><br></div><div>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....</div><div><br></div><div>How do I implement this logic?  </div><div><br></div><div>Thanks a lot!</div><div>Mohamed.<br><div><br></div><div><br></div><div><div style="color:rgb(51,51,51);background-color:rgb(245,245,245);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div>    </div><div>    <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">AttributeDefinition</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">id</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">isEligible</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">xsi</span><span style="color:rgb(119,119,119);font-style:italic">:</span><span style="color:rgb(129,144,160);font-style:italic">type</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">Mapped</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(119,119,119)">></span></div><div>        <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">InputDataConnector</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">ref</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">sqliteConnector</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">attributeNames</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">eduPersonAffiliation</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(119,119,119)">/></span></div><div>        <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">DefaultValue</span><span style="color:rgb(119,119,119)">></span>0<span style="color:rgb(119,119,119)"></</span><span style="color:rgb(75,105,198)">DefaultValue</span><span style="color:rgb(119,119,119)">></span></div><div>        <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">ValueMap</span><span style="color:rgb(119,119,119)">></span></div><div>            <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">ReturnValue</span><span style="color:rgb(119,119,119)">></span>1<span style="color:rgb(119,119,119)"></</span><span style="color:rgb(75,105,198)">ReturnValue</span><span style="color:rgb(119,119,119)">></span></div><div>            <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">SourceValue</span><span style="color:rgb(119,119,119)">></span>student<span style="color:rgb(119,119,119)"></</span><span style="color:rgb(75,105,198)">SourceValue</span><span style="color:rgb(119,119,119)">></span></div><div>       <span style="color:rgb(119,119,119)"></</span><span style="color:rgb(75,105,198)">ValueMap</span><span style="color:rgb(119,119,119)">></span></div><div>       <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">AttributeEncoder</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">xsi</span><span style="color:rgb(119,119,119);font-style:italic">:</span><span style="color:rgb(129,144,160);font-style:italic">type</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">SAML1String</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">name</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">isEligible</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">encodeType</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">false</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(119,119,119)">/></span></div><div>       <span style="color:rgb(119,119,119)"><</span><span style="color:rgb(75,105,198)">AttributeEncoder</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">xsi</span><span style="color:rgb(119,119,119);font-style:italic">:</span><span style="color:rgb(129,144,160);font-style:italic">type</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">SAML2String</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">name</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">isEligible</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">friendlyName</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">isEligible</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(129,144,160);font-style:italic">encodeType</span><span style="color:rgb(145,179,224)">=</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(68,140,39)">false</span><span style="color:rgb(119,119,119)">"</span><span style="color:rgb(145,179,224)"> </span><span style="color:rgb(119,119,119)">/></span></div><div>    <span style="color:rgb(119,119,119)"></</span><span style="color:rgb(75,105,198)">AttributeDefinition</span><span style="color:rgb(119,119,119)">></span></div></div></div></div></div>