From a79105da93ee956197ea0b23b53fdfca06bd0b1f Mon Sep 17 00:00:00 2001 From: Pasindu Yeshan Date: Thu, 28 May 2026 21:47:50 +0530 Subject: [PATCH] Add inactive_account_suspension date_format config. --- .../docs/learn/user-account-suspension.md | 23 ++++++++++++++++++- .../7.3.0/docs/apis/governance-connectors.md | 8 +++++++ .../next/docs/apis/governance-connectors.md | 8 +++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/en/identity-server/5.11.0/docs/learn/user-account-suspension.md b/en/identity-server/5.11.0/docs/learn/user-account-suspension.md index e7bdd7b55c..f77588b662 100644 --- a/en/identity-server/5.11.0/docs/learn/user-account-suspension.md +++ b/en/identity-server/5.11.0/docs/learn/user-account-suspension.md @@ -105,7 +105,28 @@ task that checks for idle accounts is common to all tenants. For more information on how to edit and customize the email templates, see [Customizing Automated Emails](../../learn/customizing-automated-emails). - + +5. Optionally, configure the date format used to render the + `{{suspension-date}}` placeholder in the **idleAccountReminder** email + template. By default, the suspension date is rendered using the + `dd-MM-yyyy` pattern (e.g. `04-05-2026`). To use a different pattern + (e.g. US-locale `MM-dd-yyyy`), add the following property in + `/repository/conf/deployment.toml`. + + ``` toml + [identity_mgt.inactive_account_suspension] + date_format = "MM-dd-yyyy" + ``` + + The value accepts any pattern supported by + [`java.text.SimpleDateFormat`](https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html). + If the property is unset, blank, or contains an invalid pattern, the + server falls back to `dd-MM-yyyy` and logs a warning. + + !!! info + This capability is available as an update in WSO2 IS 5.11.0 from + update level **5.11.0.** onwards (Updates 2.0 model). See the + instructions on [updating WSO2 products](https://updates.docs.wso2.com/en/latest/). ## Configuring account suspension settings diff --git a/en/identity-server/7.3.0/docs/apis/governance-connectors.md b/en/identity-server/7.3.0/docs/apis/governance-connectors.md index 5bb75b1ae9..23f664a228 100644 --- a/en/identity-server/7.3.0/docs/apis/governance-connectors.md +++ b/en/identity-server/7.3.0/docs/apis/governance-connectors.md @@ -135,6 +135,14 @@ This is the RESTful API for managing identity governance configurations in WSO2 | Suspend idle user accounts | suspension.notification.enable | Lock user account after a given idle period. | | Allowed idle time span in days | suspension.notification.account.disable.delay | Time period in days before locking the user account. | | Alert sending time periods in days | suspension.notification.delays | Send warning alerts to users before locking the account after each period. Comma-separated multiple values accepted. | + | Alert date format | suspension.notification.date.format | Date format of the suspension date in the idle account reminder email. Examples: dd-MM-yyyy, MM-dd-yyyy, yyyy/MM/dd. | + + {% if is_version == "7.3.0" %} + !!! info + The `suspension.notification.date.format` property is available + in WSO2 Identity Server 7.3.0 from update level **7.3.0.** + onwards. See the instructions on [updating WSO2 products](https://updates.docs.wso2.com/en/latest/). + {% endif %} **Account Disable** diff --git a/en/identity-server/next/docs/apis/governance-connectors.md b/en/identity-server/next/docs/apis/governance-connectors.md index 5bb75b1ae9..23f664a228 100644 --- a/en/identity-server/next/docs/apis/governance-connectors.md +++ b/en/identity-server/next/docs/apis/governance-connectors.md @@ -135,6 +135,14 @@ This is the RESTful API for managing identity governance configurations in WSO2 | Suspend idle user accounts | suspension.notification.enable | Lock user account after a given idle period. | | Allowed idle time span in days | suspension.notification.account.disable.delay | Time period in days before locking the user account. | | Alert sending time periods in days | suspension.notification.delays | Send warning alerts to users before locking the account after each period. Comma-separated multiple values accepted. | + | Alert date format | suspension.notification.date.format | Date format of the suspension date in the idle account reminder email. Examples: dd-MM-yyyy, MM-dd-yyyy, yyyy/MM/dd. | + + {% if is_version == "7.3.0" %} + !!! info + The `suspension.notification.date.format` property is available + in WSO2 Identity Server 7.3.0 from update level **7.3.0.** + onwards. See the instructions on [updating WSO2 products](https://updates.docs.wso2.com/en/latest/). + {% endif %} **Account Disable**