New User please be gentle. Note: I have scoured the web for days to no avail
I use the following PHP script to create a Google user account for my domain (which is an education domain registered with Google. The mx records have not yet been copied from our existing mail server as we are still testing.) The script runs without error. When I login as the domain administrator the user does not appear. I have tried creating the user with the createUser method and also via instantiating the newUserEntry. If I create a user via my Domain administrator login I am via PHP script able to retrieve the user details via $gdata->retrieveUser($username) The Apache User log shows 127.0.0.1 - - [19/Apr/2011:13:08:45 +1000] "GET /Utilities/CreateGoogleUser.php HTTP/1.1" 200 304 The PHP Error logs shows nothing. I am happy to provide any further info required. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Create Google Account</title> </head> <body> <?php $domain="mydomain.com.au"; // Establish Authentication with Google require_once 'Zend\Loader.php'; Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Gdata_Gapps'); $client = Zend_Gdata_ClientLogin::getHttpClient('adminuser@'.'myDomain.com.au', 'password', Zend_Gdata_Gapps::AUTH_SERVICE_NAME); $gdata = new Zend_Gdata_Gapps($client, $domain); //$gdata->createUser('foo', 'Random', 'User','newuser11111'); $user = $gdata->newUserEntry(); $user->login = $gdata->newLogin(); $user->login->username = 'foo'; $user->login->password = 'password11'; $user->name = $gdata->newName(); $user->name->givenName = 'Random'; $user->name->familyName = 'User'; $user = $gdata->insertUser($user); ?> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
