Repository navigation
Trying to understand import/export #19107
|
I have a server where I need to clone one realm into many others. I want basically all the configuration copied. When I try to make this work, some of the information is imported into the new realm, but nothing under the "Realm Settings" is set. As an example, this is part of the export.json file. I expect when I import into the new realm it will set the SMTP settings. However they are definitely not getting set. I may be misunderstanding how the import works. How do you import ALL setting (except the realm ID and name) to a new realm? "smtpServer": {
"replyToDisplayName": "",
"starttls": "false",
"auth": "",
"port": "25",
"host": "smtp.imsweb.com",
"replyTo": "no-reply@imsweb.com",
"from": "seertransfer@seerdms.com",
"fromDisplayName": "SEER*Transfer",
"envelopeFrom": "",
"ssl": "false"
}I imported using these settings. and here is the summary After the import I verified that none of those fields were set in "Email" tab of realm settings in the new realm. |
Replies: 2 comments 7 replies
|
I believe you've run into the "partial" part of Partial Import/Export. To import/export the entire configuration, you have to do it at server startup. See https://www.keycloak.org/server/importExport |
|
I've found using scripts with the admin CLI to be a much better solution than the import/export piece of Keycloak when it comes to re-producing Keycloak config. Figuring out the commands is tricky since it isn't well documented, but once you have them it is a much more reliable way to configure Keycloak as it allows you to break the import into small pieces when needed. |
I've found using scripts with the admin CLI to be a much better solution than the import/export piece of Keycloak when it comes to re-producing Keycloak config. Figuring out the commands is tricky since it isn't well documented, but once you have them it is a much more reliable way to configure Keycloak as it allows you to break the import into small pieces when needed.