Skip to main content
Skip table of contents

Mobile ID - Manage option to decide how long the Mobile ID shall be valid

This article describes how to manage the option to decide how long the mobile ID shall be valid in the use cases Supply mobile ID for a user and Get mobile ID (self-service user) in the Mobile ID package in Smart ID Identity Manager. A script in Identity Manager Admin is used to manage the options.

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

Prerequisites

Prerequisites

-

Step-by-step instruction for the administrator

Log in to Identity Manager Admin
  1. Log in to Identity Manager Admin as Administrator.
Manage the option to decide how long the mobile ID shall be valid
  1. In Identity Manager Admin, go to Home > Scripts.
  2. Select the script MobileIDScriptOptions.
  3. In the script, go to the yearsOfValidity variable, see the example. By default it is set to 2, which means that the mobile ID is valid for 2 years

    Example:

    /* 
    Defines the validity of the Mobile ID profile
    */
    def date = new Date()
    
    CredentialsDp_ValidFrom = date
    
    var yearsOfValidity = 2 // --> CHANGE HERE
    
    // Calculate the validity by adding the 'yearsOfValidity' value to the current date 
    use(TimeCategory) {
        CredentialsDp_ValidTo = binding.variables["CredentialsDp_ValidFrom"] + yearsOfValidity.year  
    }
  4. Change the validity time, if needed.
  5. Click Save in the upper left corner to save the updated script (or exit without saving if there are no updates).

Technical details

Default value and outcome
ValueOutcome
2 (default)The mobile ID is valid for 2 years
Other valueThe validity of the mobile ID is set to this value
The manage options script


Related information

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.