<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I recently installed keycloak 2.0.0 and I&#8217;m having troubles retrieving the roles of my users in the access token.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I made a simple test in which I created a user &#8220;WebUser&#8221; and a group &#8220;GROUP-Website&#8221;. I added the role &#8220;GROUP-Website&#8221; to my &#8220;WebUser&#8221; and then assigned the role &#8220;ROLE-Website&#8221; to this group. User should then inherit
 from this role.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I then configured a client which maps groups and roles to my access tokens. It works well, but I can&#8217;t find &#8220;ROLE-Website&#8221;. Note that if I add a specific role directly to the user, it will be present in the access token.
 My problem here is then only related to the roles of my groups not being assigned to the user.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">As far as I understood from other issues, these roles should be present in the token. Can you then tell me if I somehow misconfigured the client or the mapper ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cédric<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
</div>
<div style="font-size:11pt; color: #00552E; font-family: Helvetica, arial ,sans-serif;">
</div>
<div style="background-color:transparent;">
<div style="font-size:11pt; color: #00552E; font-family: Helvetica, arial ,sans-serif;">
<br>
<b>Lampiris SA/NV</b><br>
<span style="colour:#00552E">Rue Saint-Laurent, 54. 4000 - Liège. Belgique</span></div>
</div>
<div><a href="https://www.lampiris.be/isol"><img alt="Lampiris" src="https://tools.lampiris.be/maillingbe/Lampiris-signature.png"></a></div>
<table style="max-width: 400px; font-size: 9pt; font-family: helvetica, arial, sans-serif; color: #00552E;">
<tbody>
<tr>
<td style="padding-right:4px;padding-bottom:4px;"><a href="https://facebook.com/lampirisEU" style=" display: inline-block; text-decoration: none;" target="_blank"><img alt="Facebook" height="30" src="https://tools.lampiris.be/maillingbe/pictos-social-facebook.jpg" style="border:none;" width="30"></a></td>
<td style="padding-right:4px;padding-bottom:4px;"><a href="https://twitter.com/lampiris" style=" display: inline-block; text-decoration: none;" target="_blank"><img alt="Twitter" height="30" src="https://tools.lampiris.be/maillingbe/pictos-social-twitter.jpg" style="border:none;" width="30"></a></td>
<td style="padding-right:4px;padding-bottom:4px;"><a href="https://www.linkedin.com/company/lampiris" style=" display: inline-block; text-decoration: none;" target="_blank"><img alt="LinkedIn" height="30" src="https://tools.lampiris.be/maillingbe/pictos-social-link.jpg" style="border:none;" width="30"></a></td>
<td style="padding-right:4px;padding-bottom:4px;"><a href="https://plus.google.com/110992956589822085996" style=" display: inline-block; text-decoration: none;" target="_blank"><img alt="Google&#43;" height="30" src="https://tools.lampiris.be/maillingbe/pictos-social-G.jpg" style="border:none;" width="30"></a></td>
<td style="padding-right:4px;padding-bottom:4px;"><a href="https://youtube.com/user/lampirismedia" style=" display: inline-block; text-decoration: none;" target="_blank"><img alt="YouTube" height="30" src="https://tools.lampiris.be/maillingbe/pictos-social-youtube.jpg" style="border:none;" width="30"></a></td>
<td style="padding-right:4px;padding-bottom:4px;"><a href="https://instagram.com/lampiris" style=" display: inline-block; text-decoration: none;" target="_blank"><img alt="Instagram" height="30" src="https://tools.lampiris.be/maillingbe/pictos-social-insta.jpg" style="border:none;" width="30"></a></td>
</tr>
</tbody>
</table>
<p style="font-size:8pt; color: #00552E; line-height:10pt; font-family: 'Helvetica','arial',sans-serif;">
Please consider the environment before printing this e-mail</p>
<p style="font-size:8pt; line-height:10pt; font-family: 'Helvetica','arial',sans-serif;">
This message contains confidential information and is intended only for the individual(s) addressed in the message.<br>
If you are not the addressee you are notified that disseminating, distributing or copying this e-mail is strictly prohibited.
</p>
</body>
</html>