<div dir="ltr">Hi,<div><br></div><div>As per the documentation here, <a href="http://docs.jboss.org/keycloak/docs/1.0-rc-2/userguide/html/ch07.html">http://docs.jboss.org/keycloak/docs/1.0-rc-2/userguide/html/ch07.html</a></div>
<div><br></div><div>we can set "user-resource-role-mappings" : true, in the keycloak.json file, which will then make the adapter look inside the token for application level role mappings for the user.<br></div><div>
<br></div><div>But when I add this, I get the following err.r</div><div>
<p class="">Caused by: java.lang.RuntimeException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "user-resource-role-mappings" (Class org.keycloak.representations.adapters.config.AdapterConfig), not marked as ignorable</p>
<p class="">I was able to track this down to the code in AdapterConfig in the org.keycloak.representations.adapters.config package. In there, it is defined as "use-resource-role-mappings"</p><p class="">When I changed it to this it worked.</p>
<p class="">I believe the doco has a typo that needs to be fixed.</p><p class="">Cheers<br></p><p class="">Travis</p><p class=""><br></p>
</div></div>