I have this JSON to create a new user, which works for me, but it doesn't assign the group declared in the groups "groups":["APIs"]
tab to the user
JSON:
{
"username":"[email protected]",
"firstName":"1pruebattributesFN",
"lastName":"1pruebattributesAP",
"email":"[email protected]",
"enabled":true,
"groups":["APIs"],
"credentials":[
{
"temporary": false,
"type":"password",
"value":"1234"
}
],
"attributes":
{
"EmailVerifiedvn":"TRUE",
"Enabledvn":"TRUE",
"Entity":"[{\"id\":\"3411982108\",\"name\":\"3411982108 - Claro Home PAGO APP 2\"}]",
"State":"Activo",
"UserCreateDate":"202001031650Z",
"UserLastModifiedDate":"202001031655Z",
"UserStatus":"CONFIRMED"
}
}
The user is created but does not assign the group to the user.
In my keycloak I have declared 3 groups: