Skip Navigation LinksALVAO 11.0ALVAO Service DeskSystem implementation in the organizationUser managementUser portraitsImport user portraits from files Skip Navigation Links.


Import user portraits from files

User portrait folder

  1. Create a folder with user portraits on the server disk, e.g. "C:\ProgramData\ALVAO\Portraits".
  2. Into this folder, insert image files with user portraits in the following format:
    • File name must match the user name of the user (see ALVAO WebApp - Administration - Users - User Name column).
    • The recommended image size is 200x200 px (width x height).
    • Image format must be JPEG (extension .jpg).
    For example, the user "user1@company.local.jpg" will have the portrait saved in the file "C:\ProgramData\ALVAO\Portraits\user1@company.local.jpg".
  3. Add portraits of new users to this folder on an ongoing basis.
Tip:
You can also store portraits in subfolders based on user domains. In the portrait folder, create a subfolder for each network domain you use. The name of the subfolder must be the same as the domain name in the old username format (see ALVAO WebApp - Administration - Users - User Name column (for older systems)).
For example, for a user with the username "company.local\user1", the portrait "user1.jpg" will be stored in the folder "C:\ProgramData\ALVAO\Portraits\company.local".

Regular automatic import

On the server, create a scheduled task with a recurrence period of e.g. 1 time per day that runs the following command:

%ProgramFiles%\ALVAO\MailboxReader\ImportPortraitsFiles.exe /server <sql_server> /db <database_alvao> /path "C:\ProgramData\ALVAO\Portraits"

Note:
This task can optionally be created when you install ALVAO Server using ALVAO Server Setup.

One-time import

For a one-time import of portraits, run a scheduled job created on the server, or run the ImportPortraitsFiles application directly from the command line. The application can be found in the ALVAO Asset Management Console installation directory ("%ProgramFiles%\ALVAO\Asset Management Console"), or you can copy it from the application server from the ALVAO Service Desk MailboxReader installation directory ("%ProgramFiles%\ALVAO\MailboxReader").

Utility ImportPortraitsFiles

The ImportPortraitsFiles utility loads user portraits from files stored on disk into the Alvao system.

The utility is part of the ALVAO Service Desk MailboxReader installation and is installed in the same folder, usually in "%ProgramFiles%\ALVAO\MailboxReader".

Command line parameters

Parameter Description Mandatory Example
/conn <string>
/server <server>
/db <db>
Setting the DB connection. Yes /conn "Integrated Security=True;Initial Catalog=ALVAO;Data Source=.\SQLEXPRESS;" /server .\SQLEXPRESS /db ALVAO
/path Disk path to the portrait files folder. Yes /path "C:\ProgramData\ALVAO\Portraits"
/email The files are named according to the users email.
Note: Files may not be subfoldered by domain.
No /email
/wait Wait for a keystroke at the end of the import. No /wait

 

Did not find what you were looking for? Ask our technical support team.