Skip to main content
Skip table of contents

Temporary cards - Options for expiring temporary cards

These are the options that can be set for how to handle expiring temporary cards in the Temporary cards package in Smart ID Identity Manager.

Manage the option to set up how often to send emails regarding expiring temporary cards
  1. Log in to Identity Manager Admin as Administrator.
  2. In Identity Manager Admin, go to Home > Scripts.
  3. Select the script TempCardsScriptExpiringOptions.
  4. In the script, go to the TempCardsEmailBeforeExpiringDays variable, see the example. By default it is set to 7, 3, which means that an email will be sent out 7 and 3 days before the temporary card expires.

    Example:

    /* 
    Defines a list of days for when the expiring check email is sent out. 
    These values must be comma-separated and as an Integer. 
    Currently maximum day is 7. 
    Changes need to be applied to the search configuration TempCardsSearchBatchSyncExpiring if higher value is required.
    Possible options:
     * [7, 3](default) - Email will be sent out 7 and 3 days before expiring.
    */
    TempCardsEmailBeforeExpiringDays = [7, 3]
  5. Click Save in the upper left corner to save the updated script (or exit without saving if there are no updates).
Manage the option to send reminder emails
  1. Log in to Identity Manager Admin as Administrator.
  2. In Identity Manager Admin, go to Home > Scripts.
  3. Select the script TempCardsScriptExpiringOptions..
  4. In the script, go to the TempCardsEmailBeforeExpiringEachDay variable, see the example. By default it is set to true, which means that emails are sent out each day after the last day in TempCardsEmailBeforeExpiringDays (in the example above, day 3 before expiring).

    Example:

    /* 
    Defines if expiring check email is supposed to be sent each day after the last day in TempCardsEmailBeforeExpiringDays.
    Example: If the last day(least) is 3 in TempCardsEmailBeforeExpiringDays. Send email on 2 and 1.
    Possible options:
     * true(default)  - Email will be sent out every day after the last day in TempCardsEmailBeforeExpiringDays.
     * false - Emails will not be sent out after the last day in TempCardsEmailBeforeExpiringDays.
    */
    TempCardsEmailBeforeExpiringEachDay = true
  5. If you do not want emails to be sent out after the last day in TempCardsEmailBeforeExpiringDays, set TempCardsEmailBeforeExpiringEachDay to false.

Technical details

Default value and outcome
VariableValueOutcome
TempCardsEmailBeforeExpiringDays[7, 3] (default)An email will be sent out 7 and 3 days before the card expires.
OtherAs set in the value.
TempCardsEmailBeforeExpiringEachDay True (default)Emails are sent out each day after the last day in TempCardsEmailBeforeExpiringDays,
FalseNo emails are sent out after the last day in TempCardsEmailBeforeExpiringDays,
Temporary cards - manage options script for expiring temporary cards

Click here to see the whole Temporary cards - script for managing options for expiring temporary cards


JavaScript errors detected

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

If this problem persists, please contact our support.