Zm_User

Zm_User is a class which allows a Zimbra user to manage its own account via SOAP

You may change password, modify and get the attributes of a Zimbra user using this class

For the usage examples of all class methods check the source code of test.php

package

ZimbraSoapPhp

Methods

Constructor

__construct(\Zm_Auth $auth) 

Arguments

$auth

\Zm_Auth

soap authentication

changeUserPassword

changeUserPassword(string $userName, string $oldPassword, string $newPassword) : array

Arguments

$userName

string

user name

$oldPassword

string

old password

$newPassword

string

new password

Response

array

informations

getUserAttrs

getUserAttrs(string $userName) : string

Arguments

$userName

string

user name

Response

string

option

getUserInfo

getUserInfo(string $userName) : array

Arguments

$userName

string

user name

Response

array

informations

getUserPrefs

getUserPrefs(string $userName) : array

Arguments

$userName

string

user name

Response

array

prefs

modifyUserPrefs

modifyUserPrefs(string $userName, array $prefs = array()) : array

Arguments

$userName

string

user name

$prefs

array

an array containing the user prefs to be set

Response

array

informations

userExists

userExists(string $userName) : boolean

Arguments

$userName

string

user name

Response

boolean

exists

Properties

$auth

auth : \Zm_Auth
var

soap authentication

Type(s)

\Zm_Auth