Skip to content

Add REST API to return group's shared groups

Shubham Kumar requested to merge imskr/gitlab:groups-shared-groups into master
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Add API to return group's shared groups

  • REST API endpoint GET /groups/:id/groups/shared to Get a list of shared groups this group was invited to

  • Added new rate limitation group_shared_groups_api_limit

Note: If the request is unauthenticated and the endpoint could be accessed without authentication and not already rate-limited then the endpoint will be rate-limited by IP and it will have the same value as for the rate-limiting by the user.

Endpoint Rate limit per user
GET /api/v4/groups/:id/groups/shared 60 requests per minute

Closes #424959 (closed)

DB review

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Mario Celi

Merge request reports