*/ include '../configuration.inc'; $person = new Person(); $user = new User(); // Fill these out as needed $person->setFirstname('Firstname'); $person->setLastname('Lastname'); $person->setEmail('email@somewhere'); // You most likely want Administrator $user->setUsername('username'); $user->setAuthenticationMethod('local'); $user->setPassword('whatever you like'); $user->setRoles(array('Administrator')); $person->save(); $user->setPerson($person); $user->save();