<div dir="ltr"><div>Hello group,</div><div><br></div><div>In my user model I have a custom user attribute that I want to make available to multiple </div><div>clients via the id / access token with just one definition. Is this already possible somehow?</div><div><br></div><div>Currently one can define custom mappers for a single client via:</div><div>(In Admin Console) Realm -&gt; Clients -&gt; example-client -&gt; Mappers -&gt; create</div><div><br></div><div>There I can specify a new mapper of type &quot;user attribute&quot; where I can refer to the actual user attribute, give it a &quot;token claim name&quot; (e.g. &quot;myattribute&quot;) and specify whether this should be included in the ID and / or access token.</div><div><br></div><div>The user attribute in the token can then be accessed from within the client via:</div><div>KeycloakSecurityContext:getIdToken().getOtherClaims().get(&quot;myattribute&quot;)</div><div><br></div><div>This apporach however requires that I configure this for every client - for which I already have 10 (trend: upwards)...</div><div>It would make thinks a lot easier if it were possible to specify those mappers realm wide...</div><div><br></div><div>PS: I&#39;m currently using Keycloak 1.9.0.CR1</div><div><br></div><div>Cheers,</div><div>Thomas</div></div>