Implement account lockout policies for master realm using JSON Import

I am trying to add temporary account lockout policy for master realm which should be default. We tried to add manually from keycloak console and it is working. Now we are searching for an option such that account lockout policy should be prompted automatically instead of setting it manually every time in admin console.

Those policies (I’m assuming you mean the ones that are set in “Realm Settings”->“Security Defenses”->“Brute force detection”) get saved at the top level of the realm export.

image

Try doing a realm export, making the changes you want in the admin UI, and then doing another realm export. The diff should show you the values you’re looking for.

1 Like