restAPI add/update isnt working for the user's groups

Ive used the PHP API and even the advanced rest client and in both scenarios, i can add and update everything on the user except their groups.

Not sure if im calling it right or if something is mis-configured. Nothing showed up in the logs as well regarding the calls.



Authorization: 634h27z0Pwf6iMKo

Content-Type: application/json

Accept: application/json


{ “username”: “testuser22”, “password”: “p4ssword”, “name”: “Administrator”, “email”: "",“groups”:[“member”] }

It’s because it is not possible to add user to a group in same call with create a user.

What you need to do:

  1. Create a new user (such you already do, but without the groups parameter)

  2. Add the user to a group. Look here: REST API Plugin Readme