Commit fc22ec00 authored by Arihant's avatar Arihant

Added commands to transfer the group namespace.

parent 27b846a5
......@@ -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