I found 2 ways to restrict who can create projects within Gitlab. (No one, Maintainers, or Maintainers + Developers)
- Make a PUT request to the system API, or
- Use the admin interface and change the setting (https://docs.gitlab.com/ee/user/group/index.html#default-project-creation-level)
I assumed that if I set to “no one” this would apply to everyone except those who are admins in the groups. However, I found out that the admin user with highest privileges in the system is no different than the maintainer role. I could not create repositories (projects) in Gitlab with the admin user.
I need a way from a group level (or whole instance level really) to not allow anyone but the admin users to create repos (projects).