cspwizard / keycloak-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keycloak Utils

import-users.sh - Administer Keycloak accounts from the command-line

See users.csv for example format.

Prerequisites in the Keycloak realm:

  1. Create client (eg. keycloak_acct_admin) for this script. Access Type: public.
  2. Add the realm admin user (eg. realm_admin) to the realm
  3. In the realm admin user's settings > Client Role > "realm-management", assign it all available roles
  4. In realm, enable Direct Grant API at Settings > Login

Import users found in csv

$ ./import-users.sh --import users.csv

Delete users found in csv

$ ./import-users.sh --import users.csv

About

License:MIT License


Languages

Language:Shell 100.0%