Standard Odoo roles, such as User or Administrator in a given app, quickly stop being enough as a company grows. A salesperson should see only their own quotations, a warehouse worker shouldn't see margins, and an accountant's assistant needs to view invoices without being able to post them. The solution is custom access groups in Odoo. In this guide, based on Odoo 19, we show how to design, create, and safely test them.
If you want to try the steps described here right away, set up your own test database and experiment with access rights without any risk to your company data.
What are access groups in Odoo?
An access group (the res.groups model) is a set of rules that define what a user can do in the system. A single group can combine several elements:
- model access rights – read, write, create, and delete permissions for records of a given model,
- record rules – restrictions on which specific records a user can see or modify,
- menu access – visibility of individual items in the app menu,
- views and fields – interface elements available only to a selected group (views are specified in the group form, while field visibility is set in the view or field code using the groups attribute, or in Odoo Studio).
Groups can be arranged into a hierarchy through inherited groups (implied groups). If a custom "Sales Manager" group inherits from the standard sales group, its members automatically receive all the base permissions, and you only add what makes that profile different.
Before you start: preparation
Design a permissions matrix
Before you click anything in the system, list the roles in your company and define for each of them: which models it can access, which operations it can perform, and which records it should see. A simple spreadsheet table will save you many corrections later.
Enable developer mode
Configuring groups, access rights, and record rules is available in developer mode. Go to Settings and at the bottom of the page select Activate the developer mode, or append ?debug=1 to the URL. You also need administrator rights, i.e. access to the settings.
How to create a custom access group step by step
Step 1: Open the list of groups
Go to Settings → Users & Companies → Groups. You will see all the groups defined in the system, organized by application. Before creating a new one, check whether an existing group already covers your needs.
Step 2: Create a new group
Click New and give the group a clear name, e.g. "Sales – Own Orders Only" or "Warehouse – No Prices". Clear naming makes later management easier, especially as the number of groups grows. The group form contains tabs you will use in the following steps: Users, Inherited, Menus, Views, Access Rights, and Record Rules.
Step 3: Set up inheritance
In the inherited groups tab, add the base group on which the new role is built. This way you don't have to manually repeat dozens of standard access rights. You only add the differences compared to the basic role.
Step 4: Add model access rights
In the Access Rights tab, add rows by selecting the model and ticking the permissions: read, write, create, and delete. The rule is simple: grant the minimum needed to do the job. If someone only needs to view data, tick read only.
Step 5: Define record rules
Access rights work at the level of the entire model. If you want a user to see only their own documents or those of their team, add a rule with the appropriate domain in the Record Rules tab, e.g. [('user_id', '=', user.id)]. For each rule you can specify whether it applies to read, write, create, and delete. We described the details of how this mechanism works, including how group and global rules are combined, in the article Odoo Record Rules: How They Work – A Complete Guide.
Configuring domains and rules can be complex, and a mistake can easily lead to a data leak or block your team's work. If you want to be sure everything works correctly, consult your permissions design with our experts.
Step 6: Restrict menus and views
In the group, you can specify which menus should be available to its members. This is a convenient way to declutter the interface so users don't see sections they don't use. Keep in mind, however, that hiding a menu is not a substitute for access rights, as the data may still be reachable in other ways. You can find more about this in the post How to Restrict Menu Access in Odoo 19: A Practical Guide.
Step 7: Assign users
In the Users tab of the group form, add the people who should belong to the new role. You can also open the user's card in Settings → Users & Companies → Users and grant permissions in the access section. Standard application roles are often displayed there as selection lists, so a custom group will not always be visible among them. In that case, the simplest approach is to add users directly from the group form. If you work in a multi-company environment, also check which companies the user is assigned to. We explain this in the article How to Assign a User to a Company in Odoo Multi-Company.
How to test a new access group
Don't verify permissions using the administrator account, because it has very broad rights and won't show the real experience of an ordinary employee. Create a test user with the new group, log in to their account (e.g. in an incognito window), and go through a typical workflow: open lists, create a document, and try to edit and delete a record. Pay attention to access error messages, because they indicate what is missing in the configuration. Remember that permissions are cumulative. If a user belongs to several groups, access rights are combined, and record rules assigned to groups work on an "or" basis, so a redundant group can "unlock" something you wanted to hide. Global rules, on the other hand, which are not linked to any group, always narrow the result further.
The safest approach is to test the entire configuration on a separate database before it goes into production. You can set one up in a few minutes.
Best practices when creating access groups
- Don't modify standard groups. Changes may be overwritten or conflict during module updates, and they also make it harder to understand what is a standard setting. It is better to create your own group that inherits from the standard one.
- Apply the principle of least privilege. Start with the minimum and add access only when it is needed.
- Document your roles. Use the comment field to describe what the group is for and who should belong to it.
- Group by roles, not by people. Instead of creating a group for a single employee, design job-based roles.
- Deploy permissions in a module. In larger projects, it is worth defining groups and record rules in the XML files of your own module, and access rights in the ir.model.access.csv file. This way they are versioned and identical in the test and production environments. This approach requires access to the code, i.e. a deployment on Odoo.sh or your own server. In Odoo Online, the options for custom modules are limited.
- Monitor changes. Regularly check who changed what in the system. The following article can help User Activity Audit in Odoo 19: Track Changes and Logins.
Most common mistakes
Typical mistakes include granting delete rights where read access would be enough, creating record rules without testing them, and forgetting the base group, which leaves the user unable to see even the main application menu. Too many overlapping groups is also a common problem, where after some time nobody knows which one is responsible for what. A regular review of roles once a quarter effectively prevents this.
FAQ – frequently asked questions
Can I create an access group without developer mode?
In practice, no. The Groups menu, as well as the management of access rights and record rules, is visible only after activating developer mode. Simply enable it in Settings or add the ?debug=1 parameter to the URL. You can turn it off once the configuration is finished.
What is the difference between an access right and a record rule?
An access right defines which operations (read, write, create, delete) a user can perform on the entire model. A record rule narrows this down to selected records, e.g. only those assigned to a given user. They work best together.
Does a group change take effect immediately?
Changes to access rights and rules are applied almost immediately, but a user who is logged in may need to refresh the page or log in again to see the updated interface and menus.
Summary
Custom access groups in Odoo let you adapt the system to your company's structure: they improve data security, declutter the interface, and reduce the risk of errors. The key is a well-designed set of roles, inheritance from standard groups, precise record rules, and thorough testing on a regular user's account.
Need help designing and implementing permissions in your Odoo? The KK Innovations team will gladly analyze your processes and prepare a secure, clear role structure. Get in touch with us today.