Question

I see on this page that I can add a user to a group by POSTing to /user/group/direct?username=USERNAME, however that looks like you can only add one group to the user at a time. The API calls I will be making may require that I add several and it would be to nice put all the groups into one POST request. Is there a way to do this?

Was it helpful?

Solution

Unfortunately, the current resources only allow adding one group membership at a time, either through the user or group resources. You will need to make several calls.

There is an open feature request (CWD-2378) to add bulk operations to the resources.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top