Security Policy for Odoo

Password and session security in one free app

What Security Policy does

Passwords that expire with a warning first, cannot be reused and follow your rules. Accounts that lock after repeated wrong passwords. Sessions that end when nobody is at the screen. All set on one Settings page, per company, with a log of every event.

Password expiry with warning and forced change, password history, complexity rules, inactivity session timeout per group, log out all users, lockout after failed logins and a security log.

  • Password expiry
  • No reuse
  • Complexity rules
  • Login lockout
  • Idle timeout
  • Log out all
  • Security log

Features

  • Password expiry

    Expiry in days per company, warning banner before it, forced change at the next sign-in. 0 switches it off.

  • Password history

    Refuses the last N passwords of the user, compared against secure hashes, never plain text.

  • Complexity rules

    Upper case, lower case, digit, special character and "must not contain the login", on top of the standard minimum length.

  • Every way a password is set

    Preferences, the administrator wizard, reset password links, invitations and sign-up. A refused reset link can be used again.

  • Login lockout

    N wrong passwords lock the account for M minutes, also over the external API. One-click Unlock, list of locked users.

  • Idle session timeout

    Per company, with an override per group, exempt users and exempt IP or CIDR ranges. Open tabs sign out on their own.

  • Log out all users

    One button closes every open session at once, for example after a security incident. Your own session stays open.

  • Security log

    Who changed a password, who was locked or unlocked, who was signed out and from which IP address. Kept two years.

  • Portal friendly

    Portal users are not forced to rotate passwords. Complexity and history for portal sign-ups can be switched on.

How it works, step by step

  1. 01Set the policy in Settings

    Settings > General Settings > Security Policy. Expiry, warning days, character rules, history, lockout and idle timeout, per company. The standard minimum length sits in the same block.

    Security Policy: Set the policy in Settings
  2. 02Give some groups their own timeout

    Open "Timeout per group": for example 30 minutes for administrators and 8 hours for the shop floor. The shortest timeout of a user's groups wins. Exempt single users or office IP ranges.

    Security Policy: Give some groups their own timeout
  3. 03Users are warned before expiry

    A few days before the password expires a banner appears after sign-in with a "Change password" button.

    Security Policy: Users are warned before expiry
  4. 04Expired passwords are changed at sign-in

    An expired password, or one the administrator flagged, leads to a change page that lists the rules. Weak or reused passwords are refused with a clear reason. Works with two-factor sign-in.

  5. 05Password guessing is stopped

    After N wrong passwords the account is locked for M minutes. Even the right password is refused until then. API keys of integrations keep working.

  6. 06Unlock with one click

    Locked users show a red ribbon and an Unlock button. "Require Password Change" works on one user or on a selection in the list.

  7. 07See each user at a glance

    The Password & Session tab shows when the password was changed, when it expires, failed sign-ins, the lock time and the idle exemption.

  8. 08Review the security log

    Password changes, forced changes, lockouts, unlocks, idle logouts and "log out all" with user, who did it and IP address. Filter and group as you like.

Questions about Security Policy

Will my users be locked out right after installing?

No. Expiry counts from the install date, existing passwords keep working and the idle timeout is off until you set it.

Does it work with two-factor authentication?

Yes. The forced change page appears after the authentication code, and the lockout counts wrong passwords only, never wrong codes.

What happens to integrations that use API keys?

API keys keep working while an account is locked, because they cannot be guessed. Wrong passwords over the API count towards the lockout.

Are portal and shop customers affected?

Portal users never get password expiry. Complexity and history for them are off by default and can be switched on with one tick.

Is there a way back if the administrator is locked?

Another administrator clicks Unlock, or the lock ends by itself after the configured minutes.

All Odoo apps

Related Odoo apps

Tell us which systems disagree. We will fix that.

Thirty minutes with an engineer, not a salesperson. You leave with a map of what you run, what to connect first and a price range, whether or not you hire us.