There is an API which returns all the members of a project:
Group and project members API | GitLab
However it returns users, it does not return groups invited to a project. And I cannot find any other API which would expose this information.
I’m I missing something or it’s not possible to get the invited groups?