Error
Error Code: 413

SAP S/4HANA Error 413: Password Reuse Detected

📦 SAP S/4HANA
📋

Description

This error indicates an attempt to set a new SQL database password that has been used recently. It typically occurs during password change operations when the chosen password violates the system's security policy regarding password history, preventing reuse of a certain number of previous passwords.
💬

Error Message

ERR_SQL_PASSWORD_REUSED
🔍

Known Causes

3 known causes
⚠️
Attempted Password Reuse
You have attempted to set a new password that matches one of your recently used passwords, which is forbidden by the system's security policy.
⚠️
Strict Password History Policy
The SAP S/4HANA system is configured with a security policy that prevents the reuse of passwords for a defined number of previous changes, enforcing strong password hygiene.
⚠️
Database Policy Enforcement
The underlying SQL database (e.g., SAP HANA DB) has its own password history policy that is being enforced, either independently or in conjunction with SAP S/4HANA settings.
🛠️

Solutions

3 solutions available

1. Temporarily Disable Password Reuse Check (for immediate troubleshooting) easy

This is a quick fix to allow password changes for immediate troubleshooting or in urgent scenarios.

1
Log in to your SAP S/4HANA system with a user having administrative privileges (e.g., SAP_ALL profile).
2
Execute transaction code `RZ11` to maintain profile parameters.
3
Enter the parameter name `login/password_history_size` and press Enter.
4
To temporarily disable the check, set the value to `0`. Click the 'Display/Change' button, then enter `0` in the 'New value' field, and click 'Save'.
5
Inform users that this is a temporary measure and that the password history check will be re-enabled after troubleshooting.

2. Change User Password to a Completely New One easy

The most straightforward solution is to choose a password that has not been used recently.

1
Log in to SAP S/4HANA as the affected user or as an administrator with the ability to change user passwords.
2
Navigate to transaction code `SU01` (User Maintenance).
3
Enter the username of the affected user and click 'Display'.
4
Go to the 'Change Password' button or menu option.
5
Enter a new password that is significantly different from the last few passwords used. Avoid simple variations or common patterns.
6
Confirm the new password and save the changes.

3. Adjust Password History Size Parameter (Long-term Solution) medium

This solution involves permanently adjusting the system parameter that controls how many previous passwords are remembered.

1
Log in to your SAP S/4HANA system with a user having administrative privileges (e.g., SAP_ALL profile).
2
Execute transaction code `RZ11` to maintain profile parameters.
3
Enter the parameter name `login/password_history_size` and press Enter.
4
Click the 'Display/Change' button.
5
Enter a new value for `login/password_history_size`. The default is often 3 or 5. Increase this value if users frequently encounter this error due to legitimate password rotation needs. For example, set it to `10` or `20`.
6
Click 'Save'. The change usually takes effect immediately or after a system restart (depending on the parameter and system configuration). It's good practice to check the SAP Notes for the specific parameter's update behavior.
7
Communicate the new password history setting to users if it significantly impacts their password change strategy.
🔗

Related Errors

5 related errors