Is there any API available for getting user's group?

Any API is available for getting all the groups of a particular user. Or can we filter the following API with group id

GET /users/:user_id/projects


Please help me if you have an idea on this
Thanks in advance

In version 12.8 the User memberships endpoint was added.
If you are on an older version you can use /users/:user_id/projects with some more scripting/filtering.

1 Like

Thank you @rev.I have updated my Gitlab version and got the added endpoint. But there is no way to identify the parent group. We can filter the API based on the type only. If I want the projects under a particular group the API is not useful right?