Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » how to add or remove users in php?????? (Kerio 8)
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
Hi
I've been trying to create/remove users in PHP , but i don't know how to!
Among tutorials and API's there aren't any feature to do that.

What should i do?
please help me!

Best Regards.
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
Any help?
This is really weakness!
  •  
Lisa Lyons (Kerio)

Messages: 175
Karma: 8
Send a private message to this user
AFD, you need to speak to the Developers in our Dev Zone.

http://www.kerio.com/developers

There is a link to "Ask Experts", our developers will receive your request and should be able to help you.

Kerio Technical Support
Log Support Incidents here: http://www.kerio.com/support
Also, please use our KB: http://kb.kerio.com
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
Thanks.
I've asked them but i don't receive any answer Sad

I don't know what should i do. really.
  •  
Lisa Lyons (Kerio)

Messages: 175
Karma: 8
Send a private message to this user
I'll have a word with our developers and see if I can get an answer for you.

Kerio Technical Support
Log Support Incidents here: http://www.kerio.com/support
Also, please use our KB: http://kb.kerio.com
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
thanks in advance
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
I'm still waiting for...
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Hi AFD,
this is a quite complex question. What details should the user have? Do you want use template? Should the user have own settings? What rights? etc..

Anyway, here is a sample code with some "defaults". Feel free to play with it but please keep in mind that Kerio Control API is not officially supported, tested or documented at this moment.

Best regards,

[Updated on: Tue, 16 April 2013 16:07]


Miroslav Osladil
Senior Developer
Kerio Technologies

The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
woow
this is fantastic. thank you so much
I have 14 users in my kerio control .
I just want to create or delete user by php. template is a good idea.
and a question again. I want to limit my users to connect with sujt one IP at the same time!

Thank you so much
Best Regards
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Deleting users is also possible, here is a sample code.
$params = array(
	'domainId' => 'local',
	'userIds' => array(
		'efe4ea78-2aee-b44e-9918-59e2efa5d5e6',
		'df445a68-2b11-c42e-091c-547bbfacd1e0'
	)
);
$api->sendRequest('Users.remove', $params);


The userIds is an array of users you want to delete, at least one. Smile

To obtain user's Id use method Users.get, e.g.:

$params = array(
	'query' => array(
		'start' => 0,
		'limit' => -1,
		'orderBy' => array(array(
			'columnName' => 'userName',
			'direction' => 'Asc'
		))
	),
	'domainId' => 'local',
);
$api->sendRequest('Users.get', $params);

Miroslav Osladil
Senior Developer
Kerio Technologies

The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
  •  
AFD

Messages: 17
Karma: 1
Send a private message to this user
Smile great. thank you so much
Previous Topic: Problem of subnetmask
Next Topic: Heartbeat for Kerio Control
Goto Forum:
  


Disclaimer:
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 information.

Current Time: Sat Nov 18 15:17:35 CET 2017

Total time taken to generate the page: 0.00552 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.