Script upload is disabled in Keycloak during importing a realm

Ramanamuttana
2 min readAug 28, 2023

--

At the start, our first task involves transferring an existing realm from the old Keycloak instance. This process requires two main steps: exporting the realm from the old Keycloak and then making necessary adjustments in the new Keycloak environment.

  1. Begin by uploading the ‘realm.json’ file.
    However, during this step, you might encounter an error indicating that script uploads are not permitted during realm imports. To overcome this issue, you will need to edit the ‘realm.json’ file before uploading it. Specifically, you should remove the particular section of code outlined below in the ‘realm.json’ file.

Therefore, in order to resolve the “Script upload is disabled” error, rectify the situation by completely eliminating the ‘authorizationSettings’ node from the realm JSON file. Once this cleaning process is completed on the realm file, the import procedure will execute without issues, subsequently allowing the server to initiate successfully.

2. uploading the file

click on the create Realm

click on Browse and add realm.json

click on the create

Realm is uploaded from realm.json

--

--