When are you trying to get the field groups? What hook? Before or after ACF initializes?
I just did a test and acf_get_field_gorups()
is getting all of my field groups, no matter where they are created, in the admin, from JSON files or added using PHP.