Allow createUser to accept object