<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:14px"><div id="yui_3_16_0_1_1444018372732_2917">Hi, there</div><div id="yui_3_16_0_1_1444018372732_2917"><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr">We add a user ( with name and email ) via the endpoint : /admin/realms/demo/users</div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr"><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr"><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr">and then we want to get the name and the email from the accesstoken, </div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr"><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr"><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr">KeycloakSecurityContext session = (KeycloakSecurityContext) request.getAttribute(KeycloakSecurityContext.class.getName());</div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><span class="" id="yui_3_16_0_1_1444018372732_3081" style="white-space: pre-wrap;">        </span>AccessToken token=session.getToken();<br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class="">but nothing there. </div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class="">Can anyone help on this?</div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class="">T.I.A</div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class="">Mai</div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1444018372732_2917" dir="ltr" class=""><br></div></div></body></html>