Dynamic Group and Resources added by API

Dynamic Group and Resources added by API

Hi,
I have a Dynamic Group with criteria to match a specific user account name. This works fine with Resources added manually and by Agent. However, it does not work for Resources added by API and shared with my id. These API added resources showed up in my Default Group and I have full access to them.
Is this an expected behavior? 

                  New to ADSelfService Plus?