Hello,
I'm working on integrating Odoo with HubSpot and need to synchronize user data including their access rights/permissions. While I can successfully fetch basic user information, I'm unable to retrieve the security groups and permissions assigned to users.
My Goal:
Fetch employees with their specific access rights (like "Sales Administrator", "Accounting User", "Bank Validate", etc.) via the External API to map them to corresponding roles in HubSpot.
What I've Tried:
Basic user query works:
users = odoo.call_kw('res.users', 'search_read', [[['active', '=', True]]], {'fields': ['name', 'login', 'email']})
Attempting to get groups_id field fails:
# This doesn't return groups_id data users = odoo.call_kw('res.users', 'search_read', [[['id', 'in', user_ids]]], {'fields': ['id', 'name', 'groups_id']})
Is it possible to fetch user security groups via External API?