Visit Nexus to get an overview of Nexus' solutions, read customer cases, access the latest news, and more.


This article describes how to manage the option to set the photo size in the Create user and Edit user use cases in Smart ID Identity Manager. Read more here: Smart ID Workforce use cases

A script in Identity Manager Admin is used to manage the option.

See a list of all available options in the Smart ID use cases here: Users - Options

Prerequisites

-

Step-by-step instruction

  1. Log in to Identity Manager Admin as Administrator.
  1. In Identity Manager Admin, go to Home > Script.
  2. Select the script UsersScriptOptions.
  3. In the section Photo Management in the script, go to the UsersPhotoHeight variable, see the example. By default it is set to 400 pixels.

     /*
    Defines the height of user photo to set in pixels. 
    Possible options: 
     * 400(default) - User photo height set to 400 pixels.
    */
    UsersPhotoHeight = "400"

     

  4. In the section Photo Management in the script, go to the UsersPhotoWidth variable, see the example. By default it is set to 300 pixels.

    /*
    Defines the width of user photo to set in pixels. 
    Possible options: 
     * 300(default) - User photo width set to 300 pixels.
    */
    UsersPhotoWidth = "300"
  5. In the section Photo Management in the script, go to the UsersPhotoSize variable, see the example. By default it is set to 2048kB (2MB), which is the max size of the photo.

    /*
    Defines the max size of user photo to set in kilobytes. 
    Possible options: 
     * 2048(default) - User photo max size set to 2048kB(2MB).
    */
    UsersPhotoSize = "2048"
  6. Click Save in the upper left corner to save the updated script (or exit without saving if there are no updates)

Technical details

VariableDefault valueOutcome
UsersPhotoHeight400The max height of the photo is 400 pixels
UsersPhotoWidth 300The max width of the photo is 300 pixels
UsersPhotoSize2048The max size of the photo is 2048kB (2MB)