# Here is a curl example
curl \
-X POST "http://localhost:8888/api/UsersAndGroups/AddUser" \
-H "Authorization: {token}" \
-H "Content-Type: application/json" \
-d '{
"user_id": 1,
"first_name": "test",
"last_name": "test",
"user_name": "test",
"salutation": "test",
"telephone": "test",
"telephone_ext": "test",
"mobile": "test",
"email": "test",
"position": "test",
"department": "test",
"password_never_expires": false,
"cannot_change_password": false,
"must_change_password": false,
}'
This method allows you to update users.
To get update a user, you need to make a POST call to the following url:
:
http://localhost:8888/api/UsersAndGroups/UpdateUser
Result example :
[
{
"Success": "boolean",
"Message": "string",
"Data": object,
"CustomAction": Dictionary<object, object> ,
"CustomAttributes":Dictionary<object, object>
}
]
| Field | Parameter Type | Type | Description |
|---|---|---|---|
| user_id | body | long | User Id |
| first_name | body | string | First Name |
| last_name | body | string | Last Name |
| user_name | body | string | User Name |
| salutation | body | string | Salutation |
| telephone | body | string | Telephone |
| telephone_ext | body | string | Telephone ext |
| mobile | body | string | Mobile |
| body | string | ||
| position | body | string | Position |
| department | body | string | Department |
| password_never_expires | body | boolean | Password never expires |
| cannot_change_password | body | boolean | User cannot change password |
| must_change_password | body | boolean | User must change password |
| Authorization | header | string | Add Authorization header token |