SQL Export users and groups rules ['|', ('user_ids','=',user.id), ('group_ids','in', [x.id for x in user.groups_id])]