Odoo 19.0 Community · Persistent

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 nameLabelTypeDetails
all_implied_by_idsTransitively Implying Groupsmany2many
computed
all_implied_idsTransitively Implied Groups

The group itself with all its implied groups.

many2many
computed
all_user_idsUsers and implied usersmany2many
computed
all_users_count# Users

Number of users having this group (implicitly or explicitly)

integer
computed
api_key_durationAPI Keys maximum duration days

Determines the maximum duration of an api key created by a user belonging to this group.

float
commentCommenttext
translatable
disjoint_idsDisjoint 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_nameGroup Namechar
computed
has_lock_timeoutHas Lock Timeout

Requires re-authentication after the user's last connection

boolean
computed

added by Auth Timeout (auth_timeout)

has_lock_timeout_inactivityHas Lock Timeout Inactivity

Requires re-authentication after a period of user inactivity

boolean
computed

added by Auth Timeout (auth_timeout)

implied_by_idsImplying Groups

Users in those groups are implicitly part of this group.

many2many
implied_idsImplied Groups

Users of this group are also implicitly part of those groups

many2many
lock_timeoutSession timeout

Time interval (in minutes) after which re-authentication is required, regardless of inactivity.

integer

added by Auth Timeout (auth_timeout)

lock_timeout_2fa_selectionLock Timeout 2Fa Selectionselection
computed

Values: without_2fa (Logout), with_2fa (Logout with two-factor authentication)

added by Auth Timeout (auth_timeout)

lock_timeout_delay_in_unitLock Timeout Delay In Unitinteger
computed

added by Auth Timeout (auth_timeout)

lock_timeout_delay_unitLock Timeout Delay Unitselection
computed

Values: minutes (minutes), hours (hours), days (days)

added by Auth Timeout (auth_timeout)

lock_timeout_inactivityInactivity timeout

Time (in minutes) of user inactivity after which re-authentication is required.

integer

added by Auth Timeout (auth_timeout)

lock_timeout_inactivity_2fa_selectionLock Timeout Inactivity 2Fa Selectionselection
computed

Values: without_2fa (Screen lock), with_2fa (Screen lock with two-factor authentication)

added by Auth Timeout (auth_timeout)

lock_timeout_inactivity_delay_in_unitLock Timeout Inactivity Delay In Unitinteger
computed

added by Auth Timeout (auth_timeout)

lock_timeout_inactivity_delay_unitLock Timeout Inactivity Delay Unitselection
computed

Values: minutes (minutes), hours (hours), days (days)

added by Auth Timeout (auth_timeout)

lock_timeout_inactivity_mfaRequire MFA on inactivity timeout

Enable two-factor authentication when the inactivity timeout is reached.

boolean

added by Auth Timeout (auth_timeout)

lock_timeout_mfaRequire MFA on session timeout

Enable two-factor authentication when the session timeout is reached.

boolean

added by Auth Timeout (auth_timeout)

menu_accessAccess Menumany2many
model_accessAccess Controlsone2many

inverse: group_id

nameNamechar
requiredtranslatable
privilege_idPrivilegemany2one
rule_groupsRulesmany2many
sequenceSequenceinteger
shareShare Group

Group created to set access rights for sharing data with some users.

boolean
user_idsUser

Users explicitly in this group

many2many
view_accessViewsmany2many
view_group_hierarchyTechnical field for default group settingjson
computed
create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

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
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}'
Python (requests)
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.