Start writing here...
ERP Authorization Debt: When Yesterday's Permissions Become Today's Security Risk
Permissions accumulate over time. Employees change roles, projects end, temporary access becomes permanent, and customizations introduce new access paths. Eventually, an organization may no longer understand who can access what — or why.
This is authorization debt: the accumulated complexity and risk created by permissions that are no longer actively understood, reviewed, or maintained.
It is particularly important in ERP systems. An ERP application connects business processes, financial information, customers, suppliers, inventory, and employees. An outdated permission can therefore expose much more than a single screen or menu.
The problem is not necessarily that someone deliberately granted excessive access. Often, the problem is that permissions were granted for a legitimate reason but were never reconsidered.
1. How Authorization Debt Accumulates
Consider a typical organization. An employee starts in purchasing, temporarily helps the accounting department, and later moves into operations. Their responsibilities change, but the permissions accumulated during those transitions may remain.
The same pattern occurs with temporary projects, external consultants, emergency access, and changes in organizational structure.
Over time, the permission model becomes a historical record of organizational decisions rather than an accurate representation of current responsibilities.
This is why access reviews should not simply ask whether users can perform their current tasks. They should also ask why each permission exists, who approved it, and whether it is still justified.
2. Why Odoo Access Control Can Become Difficult to Understand
Odoo provides a flexible security model. That flexibility is useful because organizations can adapt access control to their business processes. However, it also means that understanding effective access requires looking at several mechanisms together.
Groups and inherited permissions
Odoo uses security groups to organize user permissions. Groups can
imply other groups through implied_ids, so assigning
one group may indirectly grant additional permissions.
As group relationships grow, it becomes harder to determine the effective permissions of a user by looking only at their directly assigned groups.
Access Control Lists (ACLs)
Model access rights determine whether a user can perform operations such as reading, creating, writing, or deleting records.
ACL permissions are additive. If a user receives access to a model through multiple groups, the granted operations are combined. Removing one group does not necessarily remove the permission if another group still grants it.
Record Rules
Record rules restrict which records a user can access. Their combination rules are particularly important:
- Global rules are restrictive: all applicable global rules must be satisfied.
- Group-specific rules are combined with OR semantics among the applicable group rules.
- Global restrictions still apply alongside group-specific rules.
Consequently, adding a record rule does not always make access more restrictive in the way an administrator might expect. The result depends on whether the rule is global or group-specific and on the other rules applicable to the user.
Custom code and other access paths
Odoo modules can introduce additional security-sensitive behavior through Python methods, controllers, public model methods, RPC endpoints, and custom integrations.
Operations performed with elevated privileges, such as
sudo(), also require careful review. A security analysis
of groups, ACLs, and record rules alone cannot establish that every
custom code path enforces the intended business restrictions.
3. Recognizing Authorization Debt in an Odoo Database
Authorization debt is not always visible as a security error. The application may work correctly from the user's perspective while retaining permissions that are no longer appropriate.
Some common warning signs include:
| Situation | Potential risk |
|---|---|
| Users belong to many overlapping groups | Effective permissions become difficult to understand and review. |
| Old groups remain assigned after a role change | Users may retain access from previous responsibilities. |
| Record rules have grown through multiple custom modules | The resulting record visibility may be difficult to predict. |
| Several companies share a database | Company-specific access restrictions need careful verification. |
| Custom methods use elevated privileges | Some operations may not follow the restrictions administrators expect from the standard access model. |
| Security configuration is rarely reviewed | Outdated permissions can remain unnoticed for long periods. |
These situations do not automatically indicate a vulnerability. They indicate areas where an organization should investigate, understand the effective permissions, and determine whether the access is still justified.
4. Making Odoo Security Easier to Inspect
Before an organization can improve its authorization model, it needs to understand the one it currently has.
This was the motivation behind our work on Security Visualizer, an Odoo module developed to make security configuration easier to inspect and understand.
Rather than relying exclusively on manual inspection of individual groups, access rights, and record rules, the module provides dedicated tools for examining different parts of the security model.
Security Analyzer
The Security Analyzer helps inspect the security configuration and identify relevant access-control information in a more structured way. It gives administrators and developers a starting point for investigating how permissions are configured.
Access Matrix
The Access Matrix provides a structured view of model-level access rights. It helps users inspect which groups grant read, create, write, and delete permissions on different models.
This makes overlapping permissions easier to identify and provides a more convenient way to review the ACL configuration.
Rule Explainer and Access Simulation
Record rules can be difficult to reason about, especially when several global and group-specific rules apply to the same model.
The Rule Explainer and access simulation functionality help investigate how applicable rules affect record access. This is useful when diagnosing situations where a user can see some records but not others, or when a customization changes the expected visibility of records.
Multi-company Security Analysis
Multi-company environments introduce additional complexity. Access may depend on the active company and the companies available to a user.
The multi-company analysis helps investigate security configuration in this context, making it easier to examine company-related access restrictions.
Optional Role-Based Analysis
When the OCA base_user_role module is installed,
Security Visualizer can also provide role-based analysis.
This integration is optional; it is not a mandatory dependency
of the module.
Quick Analyzer
The Quick Analyzer wizard provides a convenient way to generate security analysis results. It supports HTML and JSON output, making the results easier to inspect or use in other workflows.
5. From Visibility to Authorization Governance
Security visibility is an important first step, but it is not the same as authorization governance.
A tool can help explain what permissions exist. The organization must still decide whether those permissions are appropriate and establish a process to keep them that way.
A practical governance process should address several questions:
Who owns each permission?
Every meaningful permission should have a business reason and an accountable owner. Technical administrators can configure permissions, but business owners are often better placed to determine whether access is necessary for a particular role.
Are permissions still required?
Access should be reviewed when employees change responsibilities, leave the organization, or move between departments. Temporary access should have a clear purpose and an appropriate review or expiry process.
Are conflicting responsibilities separated?
Organizations should consider segregation of duties (SoD). For example, the same person may not be permitted to create a supplier and approve payments to that supplier.
Detecting these conflicts requires business-specific rules. A technical permission matrix can help identify combinations of access, but it cannot determine every organizational conflict without knowing the relevant business policies.
Are changes tested?
Security changes should be tested against representative users and records. Tests should cover both permitted and prohibited operations, including important custom methods and integrations.
This is particularly important when modifying record rules, because a seemingly small change can affect multiple groups and business workflows.
6. What Security Visualization Cannot Prove
It is important to distinguish between three different objectives:
- Visibility: understanding the security configuration that exists.
- Governance: deciding whether permissions are justified, assigning ownership, and reviewing them over time.
- Assurance: obtaining evidence that the application enforces the intended restrictions across relevant execution paths.
Security Visualizer primarily addresses the visibility objective and supports the work of administrators and developers responsible for security governance.
It does not independently determine whether a permission is justified by an organization's business policy. It does not reconstruct the historical reasons behind permission changes, automatically enforce segregation-of-duties policies, or prove that every custom code path is secure.
Those objectives require additional organizational processes, testing, and potentially other technical controls.
Knowing what access exists is essential. Knowing why it exists, whether it is still needed, and whether it is enforced correctly requires a broader approach.
7. A More Sustainable Approach to ERP Authorization
Authorization debt cannot be solved by a single report or a one-time cleanup. It requires a repeatable process that connects technical security configuration with business responsibilities.
A sustainable approach can include:
- Establish visibility. Inspect groups, inherited permissions, ACLs, record rules, and relevant company restrictions.
- Identify ownership. Connect important permissions to business roles and accountable owners.
- Review changes. Reconsider access when employees change roles or when business processes change.
- Test enforcement. Verify expected access and denial behavior, including custom code and integrations.
- Keep evidence. Retain review results, decisions, and relevant test evidence so that security changes can be understood later.
The objective is not to make every user a member of as few groups as possible. It is to ensure that permissions are understandable, justified, and consistent with the organization's security requirements.
8. Security Visualizer for Odoo 18.0
Security Visualizer has been developed in the OCA
server-tools repository. Our work started with the
Odoo 16.0 contribution and has continued with a migration to
Odoo 18.0.
The Odoo 18.0 migration is available for review in the corresponding OCA pull request. The pull request should be consulted for its current review and merge status.
Explore the project
Odoo 16.0 contribution:
Security Visualizer — OCA pull request #3516
Odoo 18.0 migration:
Security Visualizer — OCA pull request #3902
Related article:
Stop Guessing Why Odoo Denies Access
Conclusion
ERP security is not only about preventing unauthorized access. It is also about maintaining a permission model that remains understandable as an organization, its people, and its business processes evolve.
Old permissions are not necessarily dangerous on their own. The risk emerges when nobody can explain why they exist, whether they are still needed, or how they interact with the rest of the security model.
Tools such as Security Visualizer can make that model easier to inspect. Combined with clear ownership, periodic reviews, and meaningful security tests, this visibility can become part of a more sustainable authorization process.
The objective is not simply to know who has access. It is to know why they have it, whether they still need it, and whether the system enforces the intended restrictions.
Further Reading
ERP Authorization Debt: When Yesterday's Permissions Become Today's Security Risk
Permissions accumulate over time. Employees change roles, projects end, temporary access becomes permanent, and customizations introduce new access paths. Eventually, an organization may no longer understand who can access what — or why.
This is authorization debt: the accumulated complexity and risk created by permissions that are no longer actively understood, reviewed, or maintained.
It is particularly important in ERP systems. An ERP application connects business processes, financial information, customers, suppliers, inventory, and employees. An outdated permission can therefore expose much more than a single screen or menu.
The problem is not necessarily that someone deliberately granted excessive access. Often, the problem is that permissions were granted for a legitimate reason but were never reconsidered.
1. How Authorization Debt Accumulates
Consider a typical organization. An employee starts in purchasing, temporarily helps the accounting department, and later moves into operations. Their responsibilities change, but the permissions accumulated during those transitions may remain.
The same pattern occurs with temporary projects, external consultants, emergency access, and changes in organizational structure.
Over time, the permission model becomes a historical record of organizational decisions rather than an accurate representation of current responsibilities.
This is why access reviews should not simply ask whether users can perform their current tasks. They should also ask why each permission exists, who approved it, and whether it is still justified.
2. Why Odoo Access Control Can Become Difficult to Understand
Odoo provides a flexible security model. That flexibility is useful because organizations can adapt access control to their business processes. However, it also means that understanding effective access requires looking at several mechanisms together.
Groups and inherited permissions
Odoo uses security groups to organize user permissions. Groups can
imply other groups through implied_ids, so assigning
one group may indirectly grant additional permissions.
As group relationships grow, it becomes harder to determine the effective permissions of a user by looking only at their directly assigned groups.
Access Control Lists (ACLs)
Model access rights determine whether a user can perform operations such as reading, creating, writing, or deleting records.
ACL permissions are additive. If a user receives access to a model through multiple groups, the granted operations are combined. Removing one group does not necessarily remove the permission if another group still grants it.
Record Rules
Record rules restrict which records a user can access. Their combination rules are particularly important:
- Global rules are restrictive: all applicable global rules must be satisfied.
- Group-specific rules are combined with OR semantics among the applicable group rules.
- Global restrictions still apply alongside group-specific rules.
Consequently, adding a record rule does not always make access more restrictive in the way an administrator might expect. The result depends on whether the rule is global or group-specific and on the other rules applicable to the user.
Custom code and other access paths
Odoo modules can introduce additional security-sensitive behavior through Python methods, controllers, public model methods, RPC endpoints, and custom integrations.
Operations performed with elevated privileges, such as
sudo(), also require careful review. A security analysis
of groups, ACLs, and record rules alone cannot establish that every
custom code path enforces the intended business restrictions.
3. Recognizing Authorization Debt in an Odoo Database
Authorization debt is not always visible as a security error. The application may work correctly from the user's perspective while retaining permissions that are no longer appropriate.
Some common warning signs include:
| Situation | Potential risk |
|---|---|
| Users belong to many overlapping groups | Effective permissions become difficult to understand and review. |
| Old groups remain assigned after a role change | Users may retain access from previous responsibilities. |
| Record rules have grown through multiple custom modules | The resulting record visibility may be difficult to predict. |
| Several companies share a database | Company-specific access restrictions need careful verification. |
| Custom methods use elevated privileges | Some operations may not follow the restrictions administrators expect from the standard access model. |
| Security configuration is rarely reviewed | Outdated permissions can remain unnoticed for long periods. |
These situations do not automatically indicate a vulnerability. They indicate areas where an organization should investigate, understand the effective permissions, and determine whether the access is still justified.
4. Making Odoo Security Easier to Inspect
Before an organization can improve its authorization model, it needs to understand the one it currently has.
This was the motivation behind our work on Security Visualizer, an Odoo module developed to make security configuration easier to inspect and understand.
Rather than relying exclusively on manual inspection of individual groups, access rights, and record rules, the module provides dedicated tools for examining different parts of the security model.
Security Analyzer
The Security Analyzer helps inspect the security configuration and identify relevant access-control information in a more structured way. It gives administrators and developers a starting point for investigating how permissions are configured.
Access Matrix
The Access Matrix provides a structured view of model-level access rights. It helps users inspect which groups grant read, create, write, and delete permissions on different models.
This makes overlapping permissions easier to identify and provides a more convenient way to review the ACL configuration.
Rule Explainer and Access Simulation
Record rules can be difficult to reason about, especially when several global and group-specific rules apply to the same model.
The Rule Explainer and access simulation functionality help investigate how applicable rules affect record access. This is useful when diagnosing situations where a user can see some records but not others, or when a customization changes the expected visibility of records.
Multi-company Security Analysis
Multi-company environments introduce additional complexity. Access may depend on the active company and the companies available to a user.
The multi-company analysis helps investigate security configuration in this context, making it easier to examine company-related access restrictions.
Optional Role-Based Analysis
When the OCA base_user_role module is installed,
Security Visualizer can also provide role-based analysis.
This integration is optional; it is not a mandatory dependency
of the module.
Quick Analyzer
The Quick Analyzer wizard provides a convenient way to generate security analysis results. It supports HTML and JSON output, making the results easier to inspect or use in other workflows.
5. From Visibility to Authorization Governance
Security visibility is an important first step, but it is not the same as authorization governance.
A tool can help explain what permissions exist. The organization must still decide whether those permissions are appropriate and establish a process to keep them that way.
A practical governance process should address several questions:
Who owns each permission?
Every meaningful permission should have a business reason and an accountable owner. Technical administrators can configure permissions, but business owners are often better placed to determine whether access is necessary for a particular role.
Are permissions still required?
Access should be reviewed when employees change responsibilities, leave the organization, or move between departments. Temporary access should have a clear purpose and an appropriate review or expiry process.
Are conflicting responsibilities separated?
Organizations should consider segregation of duties (SoD). For example, the same person may not be permitted to create a supplier and approve payments to that supplier.
Detecting these conflicts requires business-specific rules. A technical permission matrix can help identify combinations of access, but it cannot determine every organizational conflict without knowing the relevant business policies.
Are changes tested?
Security changes should be tested against representative users and records. Tests should cover both permitted and prohibited operations, including important custom methods and integrations.
This is particularly important when modifying record rules, because a seemingly small change can affect multiple groups and business workflows.
6. What Security Visualization Cannot Prove
It is important to distinguish between three different objectives:
- Visibility: understanding the security configuration that exists.
- Governance: deciding whether permissions are justified, assigning ownership, and reviewing them over time.
- Assurance: obtaining evidence that the application enforces the intended restrictions across relevant execution paths.
Security Visualizer primarily addresses the visibility objective and supports the work of administrators and developers responsible for security governance.
It does not independently determine whether a permission is justified by an organization's business policy. It does not reconstruct the historical reasons behind permission changes, automatically enforce segregation-of-duties policies, or prove that every custom code path is secure.
Those objectives require additional organizational processes, testing, and potentially other technical controls.
Knowing what access exists is essential. Knowing why it exists, whether it is still needed, and whether it is enforced correctly requires a broader approach.
7. A More Sustainable Approach to ERP Authorization
Authorization debt cannot be solved by a single report or a one-time cleanup. It requires a repeatable process that connects technical security configuration with business responsibilities.
A sustainable approach can include:
- Establish visibility. Inspect groups, inherited permissions, ACLs, record rules, and relevant company restrictions.
- Identify ownership. Connect important permissions to business roles and accountable owners.
- Review changes. Reconsider access when employees change roles or when business processes change.
- Test enforcement. Verify expected access and denial behavior, including custom code and integrations.
- Keep evidence. Retain review results, decisions, and relevant test evidence so that security changes can be understood later.
The objective is not to make every user a member of as few groups as possible. It is to ensure that permissions are understandable, justified, and consistent with the organization's security requirements.
8. Security Visualizer for Odoo 18.0
Security Visualizer has been developed in the OCA
server-tools repository. Our work started with the
Odoo 16.0 contribution and has continued with a migration to
Odoo 18.0.
The Odoo 18.0 migration is available for review in the corresponding OCA pull request. The pull request should be consulted for its current review and merge status.
Explore the project
Odoo 16.0 contribution:
Security Visualizer — OCA pull request #3516
Odoo 18.0 migration:
Security Visualizer — OCA pull request #3902
Related article:
Stop Guessing Why Odoo Denies Access
Conclusion
ERP security is not only about preventing unauthorized access. It is also about maintaining a permission model that remains understandable as an organization, its people, and its business processes evolve.
Old permissions are not necessarily dangerous on their own. The risk emerges when nobody can explain why they exist, whether they are still needed, or how they interact with the rest of the security model.
Tools such as Security Visualizer can make that model easier to inspect. Combined with clear ownership, periodic reviews, and meaningful security tests, this visibility can become part of a more sustainable authorization process.
The objective is not simply to know who has access. It is to know why they have it, whether they still need it, and whether the system enforces the intended restrictions.