# Auto configure keycloak without logging to admin console at the deployment time of my application

**URL:** https://forum.keycloak.org/t/auto-configure-keycloak-without-logging-to-admin-console-at-the-deployment-time-of-my-application/14894
**Category:** Getting advice
**Created:** [April 11, 2022, 8:45am UTC](https://forum.keycloak.org/t/auto-configure-keycloak-without-logging-to-admin-console-at-the-deployment-time-of-my-application/14894 "2022-04-11T08:45:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kir](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kir](https://forum.keycloak.org/u/kir)
#### Post date: [April 11, 2022, 8:45am UTC](https://forum.keycloak.org/t/auto-configure-keycloak-without-logging-to-admin-console-at-the-deployment-time-of-my-application/14894/1 "2022-04-11T08:45:06Z")

</div>

Hi,  
I have integrated keycloak to my application and I need the following configurations to be done at the time where my application is deployed. These tasks have to be done without logging to admin console.

- Add new Password Policy
- Access token life time
- Email configurations like(smtp,username,password,port)
- Disable admin login,
- Disable creating new realm
- Create clients, client roles and map with other client roles
- Change priority order for configure OTP and update password
- Adding custom theme
- Add scope for the access token
- Enable forgot password under realm settings  
Any support or guides are highly appreciated

---

<div class="post-metadata">

### Author: ![jangaraj](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jangaraj/32/5175_2.png) [@jangaraj](https://forum.keycloak.org/u/jangaraj)
#### Post date: [April 11, 2022, 9:02am UTC](https://forum.keycloak.org/t/auto-configure-keycloak-without-logging-to-admin-console-at-the-deployment-time-of-my-application/14894/2 "2022-04-11T09:02:56Z")

</div>

This is 3rd duplicate of the topic:

> [@Keycloak Kubernetes Deployment Automatic configurations](http://forum.keycloak.org/t/keycloak-kubernetes-deployment-automatic-configurations/14880):
>
> We are planning to deploy the keycloak in kubernetes cluster so after the deployment we don’t interested in login admin do the configurations so my question is there anyway for doing all the admin configurations in the deployment time unless login as admin do the changes like Add new Password Policy, Direct Access Grant Flow set OTP has alternative option, Access Token Life time and ,Email Configurations,disable admin login,disable creating new realm,Create Client roles do role mapping,adding c…

> [@Keycloak Deployment level customizations](http://forum.keycloak.org/t/keycloak-deployment-level-customizations/14876/3):
>
> Thank you for the support ,I need to configure on deployment time some other admin level things also like Password Policy, Direct Access Grant Flow changing, Access Token Life time and ,Email Configurations,Client roles and role mapping so shall those things also above you mentioned way?

Please don’t duplicate topics.

---

<div class="post-metadata">

### Author: ![kir](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@kir](https://forum.keycloak.org/u/kir)
#### Post date: [April 11, 2022, 9:10am UTC](https://forum.keycloak.org/t/auto-configure-keycloak-without-logging-to-admin-console-at-the-deployment-time-of-my-application/14894/3 "2022-04-11T09:10:21Z")

</div>

Ohh. Is there any solution you are aware of for this topic @jangaraj

---

<div class="post-metadata">

### Author: ![jangaraj](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jangaraj/32/5175_2.png) [@jangaraj](https://forum.keycloak.org/u/jangaraj)
#### Post date: [April 11, 2022, 9:19am UTC](https://forum.keycloak.org/t/auto-configure-keycloak-without-logging-to-admin-console-at-the-deployment-time-of-my-application/14894/4 "2022-04-11T09:19:59Z")

</div>

Sorry, solution is not to post it again and again. Be patient. This is community only. Nobody here is paid here to give anyone any help.

If you need help so desperately, then pay for that, e.g. buy RedHat SSO (that’s paid Keycloak version) and you will have support directly from the vendor.
