Odoo How-To

How to Reset a User Password in Odoo

Three methods for resetting user passwords in Odoo — self-service email reset, admin reset via Settings, and direct database reset for locked-out administrators. Verified for Odoo 18 & 19.

iWesabe Editorial TeamAugust 1, 20227 min read

Password resets in Odoo fall into three distinct scenarios: a user who has forgotten their password and can access the login page, an administrator resetting another user's password through the backend, and an administrator who has lost access to the Odoo admin account entirely. Each scenario uses a different method.

Method 1 — Self-Service Password Reset (Login Page)

Any user who can reach the Odoo login page can request a password reset email. This method requires that the Odoo instance has an outgoing mail server configured and that the Reset Password option is enabled.

  1. Go to the Odoo login page (your instance URL, e.g. `https://yourcompany.odoo.com`).
  2. Click "Reset Password" below the login form.
  3. Enter the email address associated with the account and click Send Reset Link.
  4. Check the inbox for the reset email. Click the link and set a new password.

Method 2 — Admin Reset via Settings → Users

An Odoo administrator can send a password reset email to any user, or set a new password directly, without the user initiating a request. This is the standard method for onboarding new users or helping a user who is locked out.

  1. Navigate to Settings → Users & Companies → Users.
  2. Search for and open the user whose password needs resetting.
  3. Click the Action menu (⚙ gear icon) at the top of the user form and select "Send Password Reset Email". Odoo sends a reset link to the user's email address.
  4. Alternatively, to set the password directly without sending an email: click the Action menu → "Change Password". Enter the new password in the dialog and confirm.
Admin Password Reset Options — When to Use Each
OptionHow it worksWhen to use
Send Password Reset EmailOdoo sends a time-limited reset link to the user's registered email address. The user sets their own new password.User knows their email address and can access it. Preserves the user's autonomy over their own password.
Change Password (direct set)Administrator sets the new password immediately. No email is sent. User can log in with the new password right away.User cannot access their email, or the outgoing mail server is not configured. Common during initial onboarding.
Deactivate then reactivate userArchive the user record to revoke all sessions, then unarchive and use Change Password to set a fresh credential.User account is suspected to be compromised, or the user has active sessions that must be terminated before the reset.

Method 3 — Reset the Administrator Password When Locked Out

If the only administrator account's password has been lost and there is no other admin user, the password must be reset at the database or shell level. This requires server access and is specific to self-managed Odoo installations (on-premise or self-managed VPS). Odoo Online and Odoo.sh customers must contact Odoo Support for this scenario.

Option A — Reset via Odoo Shell

bash
# Start the Odoo shell for your database
# Replace <db_name> with your actual database name
odoo shell -d <db_name>

# Inside the Odoo shell (Python REPL):
# Find the admin user record
admin_user = env['res.users'].search([('login', '=', 'admin')])[0]

# Set the new password
admin_user.write({'password': 'your_new_secure_password'})

# Commit the change
env.cr.commit()

# Exit
exit()

Option B — Reset via PostgreSQL (when Odoo shell is not accessible)

bash
# Connect to PostgreSQL as the odoo user
psql -d <db_name> -U odoo

-- Find the admin user ID
SELECT id, login, active FROM res_users WHERE login = 'admin';

-- The password hash in res_users is managed by Odoo's ir.rule system.
-- The safest way to force a reset via SQL is to clear the password
-- so Odoo prompts for a new one, then use Method 2 above.
-- Direct password hash injection is version-sensitive and not recommended.

-- Instead: set a temporary password using Odoo's built-in hash function.
-- This query works in Odoo 16, 17, 18, 19:
UPDATE res_users
SET password = crypt('your_temp_password', gen_salt('bf'))
WHERE login = 'admin';

-- Exit psql
\q

User Access Rights — Quick Reference

While managing user passwords, it is useful to understand Odoo's user type hierarchy. Each type determines what a user can access and which settings are relevant to their account.

Odoo User Types — Settings → Users
User typeAccess levelPassword reset methodNotes
AdministratorFull access to all Settings menus including TechnicalSelf-service or another admin using Method 2. If sole admin: Method 3.There must always be at least one active internal user with Administrator rights. Odoo prevents removing the last admin.
Internal UserAccess to modules granted by their group permissionsSelf-service (if enabled) or admin via Method 2.Most employees are Internal Users. They see only the apps and menus their access groups allow.
Portal UserAccess to the customer/vendor portal only (orders, invoices, support tickets)Self-service via "Forgot Password" on the portal login page.Portal users do not consume an Odoo user licence. They cannot access the backend.
Public UserNo login. Read-only access to public website pages.Not applicable — no credentials.Public User is a virtual user record used by Odoo's website module for anonymous visitors.

Version Notes and Spot-Check Guide

Password Reset UI — Changes by Odoo Version
Odoo versionSelf-service toggle locationAdmin reset pathNotable change
Odoo 15 / 16Settings → General Settings → PermissionsSettings → Users & Companies → Users → Action menuNo notable changes between 15 and 16 for password reset flow
Odoo 17Settings → General Settings → PermissionsSettings → Users & Companies → Users → Action menuNo changes to password reset. Two-factor authentication (2FA) became more prominent in user security settings.
Odoo 18Settings → General Settings → PermissionsSettings → Users & Companies → Users → Action menuNo changes. Verified June 2026.
Odoo 19Settings → General Settings → PermissionsSettings → Users & Companies → Users → Action menuNo changes. Verified June 2026.

Need help managing users and access rights on your Odoo system?

iWesabe's Odoo support team handles user management, access group configuration, and security audits for Saudi and Bahrain businesses.

WhatsApp

Frequently Asked Questions

Where is the password reset option in Odoo 19?
There are two locations: (1) Self-service toggle for end users: Settings → General Settings → Permissions → Password Reset. (2) Admin reset for a specific user: Settings → Users & Companies → Users → open the user → Action menu (⚙) → Send Password Reset Email or Change Password. Both paths have been stable across Odoo 16, 17, 18, and 19.
How do I reset an Odoo password without sending an email?
Go to Settings → Users & Companies → Users, open the user record, click the Action menu (⚙) → Change Password. Enter the new password directly in the dialog. No email is sent — the user can log in immediately with the new password. This method is useful when the outgoing mail server is not configured or when the user cannot access their email.
How do I reset the Odoo admin password if I am locked out?
On a self-managed server, use the Odoo shell: run `odoo shell -d `, find the admin user with `env['res.users'].search([('login','=','admin')])[0]`, then call `.write({'password': 'new_password'})` and `env.cr.commit()`. For Odoo Online or Odoo.sh, you cannot access the server directly — contact Odoo support at help.odoo.com.
Why is the "Reset Password" link not showing on the Odoo login page?
The Reset Password link is controlled by a setting in Settings → General Settings → Permissions. If the option "Allow users to reset their password from the login page" is disabled, the link does not appear. An administrator must either enable this setting or reset the password directly via Settings → Users & Companies → Users.
Can I reset an Odoo portal user's password?
Yes. Portal users appear in Settings → Users & Companies → Users (filter by User Type = Portal). The same Action → Send Password Reset Email and Action → Change Password options are available. Portal users can also reset their own password from the portal login page if the self-service reset is enabled.
How do I enable two-factor authentication (2FA) for Odoo users?
Each user can enable 2FA from their own profile: click the user avatar (top-right) → My Profile (or Preferences) → Account Security → Two-Factor Authentication → Enable. Administrators can enforce 2FA for all users via Settings → General Settings → Permissions → Two-Factor Authentication policy.
iWesabe Editorial Team

iWesabe Editorial Team

Practitioner insights on Odoo ERP, ZATCA compliance, and Saudi enterprise digital operations — written by iWesabe's consulting, finance, and engineering teams.

About iWesabe

Related Articles