Note that with the term "gallery" we generally refer to the installation. You mean an "album". (see also the glossary on the user guide).
So you want to create that user manually? Then you have to do it, well, manually, unless you want to write a special plugin to create a user and an album.
You need to look at the object model to create albums. Look at the actual documentation or files in zp-core. Same for users which are also covered in a class you find in lib-auth.php.