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
fc22ec00
Commit
fc22ec00
authored
Oct 20, 2020
by
Arihant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added commands to transfer the group namespace.
parent
27b846a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+10
-0
No files found.
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
fc22ec00
...
@@ -484,6 +484,16 @@ user.max_member_access_for_group group.id
...
@@ -484,6 +484,16 @@ user.max_member_access_for_group group.id
## Groups
## 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
### Count unique users in a group and sub-groups
```
ruby
```
ruby
...
...
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