res.groups: fields, relations and API
The res.groups model ("Access Groups") is a persistent model declared by the Base module, then extended by 6 other modules. It exposes 38 fields, 32 of them declared directly on the model; 29 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.
Model identity
- Technical name
res.groups- Label
- Access Groups
- Type
- Persistent (models.Model)
- SQL table
res_groups- Origin module
- Base (
base) - Extended by
- bus, mail, account, auth_timeout, im_livechat, website_slides
- Default order (_order)
privilege_id, sequence, name, id- Display field (_rec_name)
full_name- Inherits from (mixins)
- bus.listener.mixin
Model fields
32 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
38 of 38 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| all_implied_by_ids | Transitively Implying Groups | many2many | computed |
| all_implied_ids | Transitively Implied Groups The group itself with all its implied groups. | many2many | computed |
| all_user_ids | Users and implied users | many2many | computed |
| all_users_count | # Users Number of users having this group (implicitly or explicitly) | integer | computed |
| api_key_duration | API Keys maximum duration days Determines the maximum duration of an api key created by a user belonging to this group. | float | |
| comment | Comment | text | translatable |
| disjoint_ids | Disjoint Groups A user may not belong to this group and one of those. For instance, users may not be portal users and internal users. | many2many | computed |
| full_name | Group Name | char | computed |
| has_lock_timeout | Has Lock Timeout Requires re-authentication after the user's last connection | boolean | computed added by Auth Timeout ( |
| has_lock_timeout_inactivity | Has Lock Timeout Inactivity Requires re-authentication after a period of user inactivity | boolean | computed added by Auth Timeout ( |
| implied_by_ids | Implying Groups Users in those groups are implicitly part of this group. | many2many | |
| implied_ids | Implied Groups Users of this group are also implicitly part of those groups | many2many | |
| lock_timeout | Session timeout Time interval (in minutes) after which re-authentication is required, regardless of inactivity. | integer | added by Auth Timeout ( |
| lock_timeout_2fa_selection | Lock Timeout 2Fa Selection | selection | computed Values: added by Auth Timeout ( |
| lock_timeout_delay_in_unit | Lock Timeout Delay In Unit | integer | computed added by Auth Timeout ( |
| lock_timeout_delay_unit | Lock Timeout Delay Unit | selection | computed Values: added by Auth Timeout ( |
| lock_timeout_inactivity | Inactivity timeout Time (in minutes) of user inactivity after which re-authentication is required. | integer | added by Auth Timeout ( |
| lock_timeout_inactivity_2fa_selection | Lock Timeout Inactivity 2Fa Selection | selection | computed Values: added by Auth Timeout ( |
| lock_timeout_inactivity_delay_in_unit | Lock Timeout Inactivity Delay In Unit | integer | computed added by Auth Timeout ( |
| lock_timeout_inactivity_delay_unit | Lock Timeout Inactivity Delay Unit | selection | computed Values: added by Auth Timeout ( |
| lock_timeout_inactivity_mfa | Require MFA on inactivity timeout Enable two-factor authentication when the inactivity timeout is reached. | boolean | added by Auth Timeout ( |
| lock_timeout_mfa | Require MFA on session timeout Enable two-factor authentication when the session timeout is reached. | boolean | added by Auth Timeout ( |
| menu_access | Access Menu | many2many | |
| model_access | Access Controls | one2many | inverse: |
| name | Name | char | requiredtranslatable |
| privilege_id | Privilege | many2one | |
| rule_groups | Rules | many2many→ ir.rule | |
| sequence | Sequence | integer | |
| share | Share Group Group created to set access rights for sharing data with some users. | boolean | |
| user_ids | User Users explicitly in this group | many2many | |
| view_access | Views | many2many | |
| view_group_hierarchy | Technical field for default group setting | json | computed |
| create_date | Created on | datetime | read-onlyautomatic |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- ir.model.access: model_access
- ir.rule: rule_groups
- ir.ui.menu: menu_access
- ir.ui.view: view_access
- res.groups: all_implied_by_ids, all_implied_ids, disjoint_ids, implied_by_ids, implied_ids
- res.groups.privilege: privilege_id
- res.users: all_user_ids, user_ids
Fields of other models pointing here
- digest.tip: group_id
- discuss.channel: group_ids, group_public_id
- forum.forum: authorized_group_id
- ir.actions.act_window: group_ids
- ir.actions.report: group_ids
- ir.actions.server: group_ids
- ir.embedded.actions: groups_ids
- ir.model.access: group_id
- ir.model.fields: groups
- ir.rule: groups
- ir.ui.menu: group_ids
- ir.ui.view: group_ids
- mail.canned.response: group_ids
- mail.group: access_group_id
- pos.config: group_pos_manager_id, group_pos_user_id
- res.groups: all_implied_by_ids, all_implied_ids, disjoint_ids, implied_by_ids, implied_ids
- res.users: all_group_ids, group_ids
- slide.channel: enroll_group_ids, upload_group_ids
- spreadsheet.dashboard: group_ids
- website.menu: group_ids
- website.page.properties: group_ids
Reading this model through the API
Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.
curl -X POST "https://your-instance.odoo.com/json/2/res.groups/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["full_name","name","privilege_id","api_key_duration","comment"],"limit":5}'import requests
BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}
res = requests.post(
f"{BASE_URL}/res.groups/search_read",
headers=headers,
json={"domain": [], "fields": ["full_name","name","privilege_id","api_key_duration","comment"], "limit": 5},
)
res.raise_for_status()
print(res.json())- External API access requires Odoo's Custom plan.
- XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
- The access rights and record rules of the key's user apply.
Cite this tool
Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.
<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/res-groups">res.groups (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.0 Community
Have an Odoo project, or want to put your ERP to work with AI? Let's talk
Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.