Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » Set users quota?
  •  
pcunix

Messages: 594
Karma: 33
Send a private message to this user
I need to set quotas for users who have not logged in in some period of time.. I find the method for login date and stuff that tells me about quotas, but what sets the quotas?

Tony Lawrence
Kerio Preferred Partner and Reseller
Certified for Connect, Control
http://aplawrence.com
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Hello,
all user's details can be set by "Users.set" method. For example, using Kerio APIs Client for PHP it can be done as follows.

$params = array(
  'userIds' => array(
     'keriodb://user/89a68b71 ... 6d2c028',
     'keriodb://user/68074f41 ... 9e4176d'
   ),
   'pattern' => array(
     'diskSizeLimit' => array(
       'isActive' => TRUE,
       'limit' => array(
         'value' => 10,
         'units' => 'MegaBytes'
       )
    )
  )
);

$response = $api->sendRequest('Users.set', $params);


As you can see, it is possible to set the same quota for multiple users at once using their GUID.

Best regards,

Miroslav Osladil
Senior Developer
Kerio Technologies

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

Messages: 594
Karma: 33
Send a private message to this user
Ahh.. I knew it had to be in there somewhere!

Thanks!

Tony Lawrence
Kerio Preferred Partner and Reseller
Certified for Connect, Control
http://aplawrence.com
Previous Topic: Check user availability
Next Topic: Trying to get / print diskSizeLimit
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: Thu Aug 17 11:31:33 CEST 2017

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