<div dir="ltr">Thanks a lot Stian for the very quick reply. Should have checked this out earlier.<div>Got it working!! </div><div><br></div><div>Thanks again,</div><div>Subhro.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 3:21 PM, Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">tokenParsed contains all details in the token, including the roles<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "Subhrajyoti Moitra" <<a href="mailto:subhrajyotim@gmail.com">subhrajyotim@gmail.com</a>><br>
> To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Tuesday, 28 July, 2015 11:39:25 AM<br>
> Subject: [keycloak-user] JS Adapter- Get user realm-roles and client specific roles.<br>
><br>
> Hello Friends,<br>
> We are preparing a keycloak SSO based auth/IDM for our internal applications.<br>
><br>
> For protecting JS-UI we are using the JS adapter. We are able to get basic<br>
> user information, using loadUserProfile() api.<br>
><br>
> Q) How do I get the roles that the user has been assigned at the realm level<br>
> as well as the client specific roles?<br>
><br>
> Pl guide me how i can accomplish this. Even a server side solution would<br>
> work, need not be just JS based.<br>
><br>
> Thanks a lot in advance.<br>
><br>
> Subhro.<br>
> PS: Using KC 1.3.1 Final with MySQL<br>
><br>
</div></div>> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>