Is there a way to add a user to several groups (in bulk) in Keycloak using Keycloak Admin REST API?

Viewed 1254

At the moment I am adding the user to one group at a time using this endpoint:

PUT /{realm}/users/{id}/groups/{groupId}

In my use case it would be beneficial to perform the affectations in bulk, so far I haven't found a documented way of doing so, is there a way to do it? Thanks

2 Answers
PUT /{realm}/users/{id}

It's in the documentation, but it doesn't work.

I started discussion on github

Related