Skip to content
Snippets Groups Projects
Commit 1a580167860a authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Script to clear passwords of Odoo users that already have an SAML user ID

parent e53d6e69c51c
No related branches found
No related tags found
No related merge requests found
-- When migrating to a version of "auth_saml" > 2.0, a constraint (optional) has been added to
-- ensure no Odoo user posesses both an SAML user ID and an Odoo password.
-- Run this script to clear passwords of Odoo users that already have an SAML user ID.
UPDATE res_users SET password = NULL WHERE password IS NOT NULL AND saml_uid IS NOT NULL;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment