Batch adding users to a group

843 views
Skip to first unread message

Philip Pemberton

unread,
Jan 12, 2021, 4:20:52 PM1/12/21
to Keycloak User
Hi,

I've just deployed Keycloak and imported all our users. Due to a weakness in the OAuth implementation in one of the apps we use, I've had to add a "staff" group in addition to the normal department roles.

I now have to add nearly a hundred users to the Staff group.

Is there a way to automate this, or do I have to slog through and do this manually?

Similarly, if I wanted to batch-remove a subset of users (or all of them) from a group, is there an easy way to do that?

Thanks
Phil

Joeri Meijer

unread,
Jan 14, 2021, 4:39:52 AM1/14/21
to Keycloak User
Hi,

This is not standard functionality, but you could use the Admin REST API to make a script which does this.

Hope this helps!
Reply all
Reply to author
Forward
0 new messages