Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » change user password (How can i change the password via PHP Api)
  •  
12Sync_de

Messages: 8

Karma: 0
Send a private message to this user
How can i change the password of an users account via PHP Admin API?

Which parameter needed?
Or how can i get a list of these parameters?

thanks in advance

BR

[Updated on: Wed, 25 January 2017 20:20]

  •  
Brian Carmichael (Kerio)

Messages: 681
Karma: 69
Send a private message to this user
Have a look at this KB article http://kb.kerio.com/product/kerio-api/inspecting-kerio-api-c ommunication-in-a-web-browser-1989.html
It explains how you can use your browser to capture the API query for any administrative action (e.g. such as updating a user's password).

Brian Carmichael
Senior Technical Marketing Engineer | Kerio
Stay Connected Anytime, Anywhere. Discover Kerio Cloud!
  •  
12Sync_de

Messages: 8

Karma: 0
Send a private message to this user
big thanks @Brian

i've got it:

$SetParams = array(
                        'userIds' => array(
                            $UserId
                        ),

                        'pattern' => array(
                            'password' => $Password                       )
                    );
    $SetResult = $api->sendRequest('Users.set', $SetParams);
  •  
Brian Carmichael (Kerio)

Messages: 681
Karma: 69
Send a private message to this user
Awesome, I'm glad the article was helpful.

Brian Carmichael
Senior Technical Marketing Engineer | Kerio
Stay Connected Anytime, Anywhere. Discover Kerio Cloud!
Previous Topic: Online availability of API documentation
Next Topic: set signature over the API
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 Jun 24 16:03:19 CEST 2017

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