Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to add a realm level protocol mapper in keycloak?

Keycloak allows to add custom attributes to users. However, in order for these attributes to appear in access token, we have to add a protocol mapper in the "client". If you have many clients and all clients are interested in those attributes, it becomes more effort to add these protocol mappers in all the clients. I was wondering if it is possible to add a protocol mapper on realm level so the attribute is always present in access tokens for all clients?


creating protocol mapper

like image 617
Bilal Fazlani Avatar asked Oct 19 '25 12:10

Bilal Fazlani


1 Answers

I would try to create Client Scope with mapper, which will be Assigned Default Client Scope on the realm level.

like image 106
Jan Garaj Avatar answered Oct 22 '25 04:10

Jan Garaj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!