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&target=admin&action=check_user&login_name=newuser

Parameters

ParameterDescription
targetadmin
actioncheck_user
idA session ID that is valid for this collection and publication combination.
login_nameUser's login name
book The name of the publication, such as s1000d_bike_41.
collectionThe name of the collection that the publication is registered in, such as default.

Returns

On success
If the user exists
<RESULT>
     <EXISTS/>
</RESULT>
On failure
If the user doesn't exist
<RESULT></RESULT>