user6696847
user6696847

Reputation: 153

Prevent project creation in gitlab?

As part of our cloud migration, we are deploying all our repositories on github. Due to safety concern, we'd like to keep our local gitlab online for a short period of time in read-only mode. I have archived all projects so no commit can be pushed, but I'm not sure how can I prevent project creation for all users. Ideally, I'm looking for a global flag which will put whole gitlab in RO mode. I'm not sure if it's possible at all. Google didn't yield any result.

Thanks in advance

Upvotes: 2

Views: 491

Answers (2)

VonC
VonC

Reputation: 1327004

You now have, with GitLab 17.8 (January 2025)

Project creation protection for groups now includes Owners

Project creation can be restricted to specific roles in a group using the Allowed to create projects setting. The Owner role is now available as an option, enabling you to restrict new project creation to users with the Owner role for the group. This role was previously unavailable in the selection options.

Thank you @yasuk for this community contribution!

See Documentation and Issue.

So modifying that setting could be an alternative approach to "prevent project creation for all users" (except the owner).

Upvotes: 0

Libin Varghese
Libin Varghese

Reputation: 1740

As per the doc only Privileges with Master & Owner can create Projects. You could change the Privileges of the Users accordingly.

Upvotes: 0

Related Questions