Zend/Gdata/Gapps.php
public function createUser ($username, $givenName, $familyName, $password,
            $passwordHashFunction = null, $quotaLimitInMB = null) {
        $user = $this->newUserEntry();
        $user->login = $this->newLogin();
        $user->login->username = $username;
        $user->login->password = $password;
        $user->login->hashFunctionName = $passwordHashFunction;
        $user->name = $this->newName();
        $user->name->givenName = $givenName;
        $user->name->familyName = $familyName;
        if ($quotaLimitInMB !== null) {
            $user->quota = $this->newQuota();
            $user->quota->limit = $quotaLimitInMB;
        }
        return $this->insertUser($user);
    }
public function createUser ($username, $givenName, $familyName, $password,
            $passwordHashFunction = null, $quotaLimitInMB = null) {
        $user = $this->newUserEntry();
        $user->login = $this->newLogin();
        $user->login->username = $username;
        $user->login->password = $password;
        $user->login->hashFunctionName = $passwordHashFunction;
        $user->name = $this->newName();
        $user->name->givenName = $givenName;
        $user->name->familyName = $familyName;
        if ($quotaLimitInMB !== null) {
            $user->quota = $this->newQuota();
            $user->quota->limit = $quotaLimitInMB;
        }
        return $this->insertUser($user);
    }
public function createUser ( $ username , $ givenName , $ familyName , $ password , $ passwordHashFunction = null , $ quotaLimitInMB = null ) { $ user = $ this -> newUserEntry ( ) ; $ user -> login = $ this -> newLogin ( ) ; $ user -> login -> username = $ username ; $ user -> login -> password = $ password ; $ user -> login -> hashFunctionName = $ passwordHashFunction ; $ user -> name = $ this -> newName ( ) ; $ user -> name -> givenName = $ givenName ; $ user -> name -> familyName = $ familyName ; if ( $ quotaLimitInMB !== null ) { $ user -> quota = $ this -> newQuota ( ) ; $ user -> quota -> limit = $ quotaLimitInMB ; } return $ this -> insertUser ( $ user ) ; }
Create a new user entry and send it to the Google Apps servers.

@param string $username The username for the new user.
@param string $givenName The given name for the new user.
@param string $familyName The family name for the new user.
@param string $password The password for the new user as a plaintext string
(if $passwordHashFunction is null) or a SHA-1 hashed
value (if $passwordHashFunction = 'SHA-1').
@param string $quotaLimitInMB (optional) The quota limit for the new user in MB.
@return Zend_Gdata_Gapps_UserEntry (optional) The new user entry as returned by
server.
@throws Zend_Gdata_App_Exception
@throws Zend_Gdata_App_HttpException
@throws Zend_Gdata_Gapps_ServiceException
Create a new user entry and send it to the Google Apps servers .