Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » Connect: How to get active user info
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Fork from another thread.

nhoague wrote on Fri, 01 February 2013 15:18
I can't find a function to return number of active users, does it exist? Or does Connect iterate all current users to build number of consumed licenses?


Information about users, are stored generally in Users interface. You can find there totalUsers value for each query.

Request:
{"jsonrpc":"2.0","id":1,"method":"Users.get","params":{ ... }}

Response:
{"jsonrpc":"2.0","id":1,"result":{"list":[ ... ],"totalItems":100}}


Active user info is also stored here in method Users.getMailboxCount.

The sample request is as follows.

Request:
{"jsonrpc":"2.0","id":1,"method":"Users.getMailboxCount","params":{}}

Response:
{"jsonrpc":"2.0","id":1,"result":{"count":{"active":20,"total":100}}}


Miroslav Osladil
Senior Developer
Kerio Technologies

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

Messages: 853
Karma: 18
Send a private message to this user
Duh, man I just can't think out of box sometimes haha...

Is there a similar function for Control and Operator? (sorry to change topic again)
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Control: ProductInfo.getUsedDevicesCount
Operator: ProductRegistration.getFullStatus

Miroslav Osladil
Senior Developer
Kerio Technologies

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

Messages: 853
Karma: 18
Send a private message to this user
Thanks! This works well ...

For Operator however, I can only get the max number of users, not the total used users. Any thoughts?

Also for Control seems this only works on newer versions, but now that I can track versions, I guess thats a hidden meaning ... update all my Controls out there!

Thanks again!
Previous Topic: Long time ...
Next Topic: Documentation for API for Control/Operator
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: Wed Aug 23 06:23:07 CEST 2017

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