- Miroslav Osladil (Kerio)
Do you want to create a new user and check if the address is not in conflict with another entity?
Let see how it is done in Web Administration for Kerio Connect.
During creating a new user, the background check is performed whether the picked username already exists or not. If so you can easily choose another name even before you try to send data to the server and end up with an error.
Very useful in automated registration wizards.
For example, in Kerio APIs Client Library for PHP, you can do it as follows.
$params = array(
'addresses' => array($username),
'updatedEntity' => array('kind' => 'EntityUser'),
'domainId' => $domainId);
$result = $api->sendRequest('Server.findEntityByEmail', $params);
? 'Username is not available.'
: 'Username is available.';
$username - requested username
$domainId - domain ID in where user is being checked
The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
Neat. I'm looking forward to the day when I have 'spare' time to play with this new API toy.
Kerio discussion forums are intended for open communication between forum
members and may contain information and material posted by members which may
be useful in learning about Kerio products. The discussion forums are not
intended to provide technical support for any specific product. Any
information implied or expressed in the discussion forums is that of the
posting member. Kerio is in no way responsible for the information posted in
the forums, or its accuracy. Kerio employees may participate in the
discussions, but their postings do not represent an offical position of the
company on any issues raised or discussed. Kerio reserves the right to
monitor and maintain the forums to promote free and accurate exchange of