Add a new user
This API is used to add a new user.
Example API call
/servlets3/wietmsd?id=1459755986251&book=s1000d_bike_41&collection=default&uniqid=1459755984750&target=admin&action=insert_user
Parameters
| Parameter | Description |
|---|---|
target | admin |
action | insert_user |
id | A session ID that is valid for this collection and publication combination. |
book | The name of the publication, such as s1000d_bike_41. |
collection | The name of the collection that the publication is registered in, such as default. |
uniquid | To prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a time parameter that is based on the time at which the call is made. |
XML post data
<userdata>
<login_name>newuser</login_name>
<old_login_name>newuser</old_login_name>
<password>newuser</password>
<user_group>EDITOR</user_group>
<last_name>newuser</last_name>
<first_name>newuser</first_name>
<middle_name/>
<comp_code/>
<company/>
<email>newuser@sdl.com</email>
<exp_date/>
<reminder>30</reminder>
<mode>add</mode>
<user_id/>
</userdata>
Returns
- On success
- Returns nothing
- On failure
- Returns nothing