<font face="arial" size="2"><p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">I am using 1.2.0 Beta version on keycloak.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">Hmm...Let me try again and see how it goes.</p>
<!--WM_COMPOSE_SIGNATURE_START-->
<p class="MsoNormal" style="margin:0;padding:0;mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="margin:0;padding:0;mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Regards,</p>
<p class="MsoNormal" style="margin:0;padding:0;mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Kalinga</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;"><br /><br />-----Original Message-----<br />From: "Marek Posolda" <mposolda@redhat.com><br />Sent: Tuesday, May 5, 2015 8:51pm<br />To: "Bill Burke" <bburke@redhat.com>, keycloak-user@lists.jboss.org<br />Subject: Re: [keycloak-user] User attributes in ID Token using protocol mappers<br /><br /></p>
<div id="SafeStyles1430869651">
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">+1 for combine them.<br /><br />Or maybe UserPropertyMapper could display the combobox with the <br />available properties from UserModel? As those could be retrieved by <br />reflection.<br /><br />Marek<br /><br />On 5.5.2015 17:15, Bill Burke wrote:<br />> There is a UserProperty mapper and a UserAttribute mapper. Use the<br />> "UserAttribute" mapper. Maybe that's it? UserProperty is looks for get<br />> methods on UserModel. Meh, this as probably a bad idea. Should<br />> probably have just combined them.<br />><br />> On 5/5/2015 10:38 AM, Kalinga Dissanayake wrote:<br />>> Is it possible to return a user attribute in the ID token using protocol<br />>> mappers?<br />>><br />>> I have a user that has a custom attribute called "accountId" and a value<br />>> is assigned to it. I checked in the USER_ATTRIBUTE table (mysql) and the<br />>> values are properly assigned.<br />>><br />>> I created a protocol mapper. In that I set the protocol type as "User<br />>> Attribute" and entered the key "accountId" as both the User Attribute<br />>> and Token Claim Name and switched on both "Add to ID Token" and "Add to<br />>> Access Token".<br />>><br />>> I simply cant get this accountID attribute value returned in the ID<br />>> Token nor Access Token.<br />>><br />>> Basically I need to return the user attributes in the ID Token / Access<br />>> Token. Is it possible?<br />>><br />>> Regards*,*<br />>><br />>> Kalinga<br />>><br />>><br />>><br />>> _______________________________________________<br />>> keycloak-user mailing list<br />>> keycloak-user@lists.jboss.org<br />>> https://lists.jboss.org/mailman/listinfo/keycloak-user<br />>><br /><br />_______________________________________________<br />keycloak-user mailing list<br />keycloak-user@lists.jboss.org<br />https://lists.jboss.org/mailman/listinfo/keycloak-user</p>
</div></font>