Check if user exists
This API checks if a user exists or not . Usually this API is called before creating a new user.
Example API call
/servlets3/wietmsd?id=1459755986251&book=s1000d_bike_41&collection=default&uniqid=1459755984750&target=admin&action=check_user&login_name=newuser
Parameters
| Parameter | Description |
|---|---|
target | admin |
action | check_user |
id | A session ID that is valid for this collection and publication combination. |
login_name | User's login name |
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. |
Returns
- On success
-
If the user exists
<RESULT> <EXISTS/> </RESULT> - On failure
-
If the user doesn't exist
<RESULT></RESULT>