Scoping issues for hostgroup resource in foreman for users

Problem:
when there are users scoped via roles, the role manages the hostgroup resource via granular filtering on “title”. The end users belonging to those roles can see only a subset of the hostgroups.

Expected outcome:
scoped users should be able to see the resources they are allowed to.

Foreman and Proxy versions:

3.19.2, 3.19.2

Distribution and version:
el9 centos

**Other relevant data:

when I find the hostgroups which are not visible for the scoped user, I become admin, find the problematic hostgroup–>click on edit–>do nothing–>click submit. NOW the problematic hostgroup shows up for the scoped user.

I verified if the Locations and Organizations are causing issues, can confirm those are not the problem.**