Limit number of organizations per user #963

Open
opened 2025-11-02 03:43:24 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @mxmehl on GitHub (Aug 14, 2017).

Description

With MAX_CREATION_LIMIT Gitea admins can limit the number of repositories per user, and with DISABLE_REGULAR_ORG_CREATION one can allow non-admins to create organizations.

But it would make sense to be able to limit the numbers of organizations a non-admin user can create. While I want to allow my users to create one or two orgs, I don't see any reason for 5 or 10 orgs. At the same time, they should be able to create as many repos as they want (well, at least a higher limit than the organizations).

If someone could implement that, we would be very grateful :)

Originally created by @mxmehl on GitHub (Aug 14, 2017). ## Description With `MAX_CREATION_LIMIT` Gitea admins can limit the number of repositories per user, and with `DISABLE_REGULAR_ORG_CREATION` one can allow non-admins to create organizations. But it would make sense to be able to limit the numbers of organizations a non-admin user can create. While I want to allow my users to create one or two orgs, I don't see any reason for 5 or 10 orgs. At the same time, they should be able to create as many repos as they want (well, at least a higher limit than the organizations). If someone could implement that, [we](https://git.fsfe.org) would be very grateful :)
GiteaMirror added the issue/confirmedtype/proposal labels 2025-11-02 03:43:24 -06:00
Author
Owner

@stale[bot] commented on GitHub (Feb 13, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 13, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@imacks commented on GitHub (Dec 29, 2019):

i am looking for this feature too!

@imacks commented on GitHub (Dec 29, 2019): i am looking for this feature too!
Author
Owner

@zeripath commented on GitHub (Aug 28, 2020):

The best we can do is limit the number of organizations that can be owned by a user so that if you are an owner of a certain number of organizations you cannot create another organization. However, that would not stop you from creating organizations and passing them on to other users.

@zeripath commented on GitHub (Aug 28, 2020): The best we can do is limit the number of organizations that can be owned by a user so that if you are an owner of a certain number of organizations you cannot create another organization. However, that would not stop you from creating organizations and passing them on to other users.
Author
Owner

@mxmehl commented on GitHub (Aug 29, 2020):

Alright, the latter (creating and passing forth) would rather sound like a malicious hack to circumvent the restrictions.

We currently disallow organisation creation, so people will have to contact us. That strategy works for us, but other larger, more anonymous instances might profit from a more "automated" but still restrictive way.

@mxmehl commented on GitHub (Aug 29, 2020): Alright, the latter (creating and passing forth) would rather sound like a malicious hack to circumvent the restrictions. We currently disallow organisation creation, so people will have to contact us. That strategy works for us, but other larger, more anonymous instances might profit from a more "automated" but still restrictive way.
Author
Owner

@imacks commented on GitHub (Aug 29, 2020):

the passing on scenario wouldn't be too bad if every user has an org creation limit. Also as @mxmehl said such behavior would be better dealt with by an actual human admin (although some kind of warning log would be helpful). Overall, i think i'm just biased against anything that's unlimited :)

@imacks commented on GitHub (Aug 29, 2020): the passing on scenario wouldn't be too bad if every user has an org creation limit. Also as @mxmehl said such behavior would be better dealt with by an actual human admin (although some kind of warning log would be helpful). Overall, i think i'm just biased against anything that's unlimited :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#963