Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 662 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 662 Bytes

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