Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
691bf90d
Commit
691bf90d
authored
Mar 24, 2022
by
Jeremy Tymes
Committed by
Mikołaj Wawrzyniak
Mar 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose membership_lock on group detail API
Changelog: changed EE: true
parent
e9edcbee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
doc/api/groups.md
doc/api/groups.md
+14
-0
ee/lib/ee/api/entities/group_detail.rb
ee/lib/ee/api/entities/group_detail.rb
+2
-0
No files found.
doc/api/groups.md
View file @
691bf90d
...
...
@@ -483,6 +483,8 @@ Example response:
## Details of a group
> The `membership_lock` field was [added](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82271) in GitLab 14.10.
Get all details of a group. This endpoint can be accessed without authentication
if the group is publicly accessible. In case the user that requests is an administrator
if the group is publicly accessible. With authentication, it returns the
`runners_token`
...
...
@@ -715,6 +717,18 @@ the `marked_for_deletion_on` attribute:
}
```
Users of
[
GitLab Premium or higher
](
https://about.gitlab.com/pricing/
)
also see
the
`membership_lock`
attribute:
```
json
{
"id"
:
4
,
"description"
:
"Aliquid qui quis dignissimos distinctio ut commodi voluptas est."
,
"membership_lock"
:
false
,
...
}
```
When adding the parameter
`with_projects=false`
, projects aren't returned.
```
shell
...
...
ee/lib/ee/api/entities/group_detail.rb
View file @
691bf90d
...
...
@@ -11,6 +11,8 @@ module EE
expose
:extra_shared_runners_minutes_limit
expose
:prevent_forking_outside_group?
,
as: :prevent_forking_outside_group
expose
:membership_lock?
,
as: :membership_lock
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment