Skip to content

villaitatti/keycloak-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%