Commit 31fa73f4 authored by Viji Rao's avatar Viji Rao

Merge branch 'arihantar-master-patch-72198' into 'master'

Added commands to transfer the group namespace

See merge request gitlab-org/gitlab!45629
parents 8aa2612e fc22ec00
......@@ -484,6 +484,16 @@ user.max_member_access_for_group group.id
## Groups
### Transfer group to another location
```ruby
user = User.find_by_username('<username>')
group = Group.find_by_name("<group_name>")
parent_group = Group.find_by(id: "") # empty string amounts to root as parent
service = ::Groups::TransferService.new(group, user)
service.execute(parent_group)
```
### Count unique users in a group and sub-groups
```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment