<div dir="ltr">Hello,<div><br></div><div>We have created a custom required action, in the form of a provider. It appears to behave as expected (we&#39;re using Keycloak 1.9.2)</div><div><br></div><div>We are facing a challenge when trying to provision a new/empty server with Keycloak. We are trying to install Keycloak, and restore a pre-existing user base in it. Using the guidelines from chapter 25 &quot;export and import&quot; of the manual, we&#39;re able to do most of what we&#39;d like to achieve.</div><div><br></div><div>However, we&#39;re unable to restore users that have defined a required action as provided by our custom code. When we start up Keycloak, and look at the realm configuration for authentication, the &#39;required action&#39;  is missing, but can be registered. After we manually do that, everything appears to be fine.</div><div><br></div><div>Is there a way in which we can have a registered custom required action, without the need for manual intervention? </div><div><br></div><div>We&#39;ve tried adding a JSON snippet to the &#39;requiredActions&#39; array property in the realm.json file that&#39;s being imported, but that does not appear to have any effect. </div><div><br></div><div>An alternative would perhaps be registering the action through the REST endpoint that appears to be available, but that would require us to start Keycloak, before we&#39;ve provisioned the users, which if possible, would be pretty messy (we&#39;d have to wait for Keycloak to have started, invoke the REST endpoint, shut the instance down, and restart it with the user import, as far as I can tell).</div><div><br></div><div>I&#39;m hoping I&#39;m simply missing an obvious option. Any help is much appreciated!</div><div><br></div><div>Regards,</div><div><br></div><div>  Guus</div></div>