Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Keycloak: is it possible to script groups in config json file?

$
0
0

I can configure keycloak user in my users.json file:

{
  "realm" : "my_realm",
  "users" : [ {
    "id" : "my_id",
    "createdTimestamp" : 1568195319743,
    "username" : "my_user_name",
    "enabled" : true,
    "totp" : false,
    "emailVerified" : false,
    "credentials" : [ {
      "type" : "password",
      "hashedSaltedValue" : "XXXXX",
      "salt" : "XXXXX",
      "hashIterations" : 27500,
      "counter" : 0,
      "algorithm" : "pbkdf2-sha256",
      "digits" : 0,
      "period" : 0,
      "createdDate" : 1568195377551,
      "config" : { }
    } ],
    "disableableCredentialTypes" : [ "password" ],
    "requiredActions" : [ ],
    "realmRoles" : [ "offline_access", "uma_authorization" ],
    "clientRoles" : {
      "account" : [ "manage-account", "view-profile" ]
    },
    "notBefore" : 0,
    "groups" : [ ]
  }]
}

When I start the keycloak container, those get loaded into keycloak daabase.

Can I script user groups the same way (in this file or some other file)? And map the users to the groups?


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>