| POST | /keycloak/users/add | add a user in keycloak |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SessionId | form | string | Yes | The id of the REST session |
| Groups | form | string | No | Comma seperated list of groups the user is a member of |
| Username | form | string | Yes | The username of the user |
| form | string | Yes | The email must be unique | |
| LastName | form | string | Yes | The last name of the user |
| FirstName | form | string | Yes | The first name of the user |
| UserId | form | Guid | No | The user id in the logins database the user is associated with |
| CompanyId | form | Guid | No | The company id in the logins database the user is associated with |
| RequiredActions | form | List<string> | No | A list of required actions to be performed on the user when created |
| Enabled | form | bool | No | Set to true to enable user |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SessionId | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /keycloak/users/add HTTP/1.1
Host: n3tapi.palmettovdc.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"sessionId":"String","groups":"String","username":"String","email":"String","lastName":"String","firstName":"String","userId":"00000000000000000000000000000000","companyId":"00000000000000000000000000000000","requiredActions":["String"],"enabled":false}