What is an Organization?
An organization is a shared account where groups of users can collaborate on projects. Organizations have:- Multiple owners and members - Organizations can have multiple users with different permission levels
- Teams - Group users with specific access rights to repositories
- Centralized repository management - All repositories belong to the organization
- Visibility controls - Public, limited, or private visibility
Creating an Organization
To create a new organization:- Click the + icon in the top navigation bar
- Select New Organization
- Fill in the organization details:
- Organization Name - Must be unique and follow naming rules
- Visibility - Choose how the organization appears to others
- Repository Admin Change Team Access - Allow repository admins to modify team access
Users must have permission to create organizations. This is controlled by the
DEFAULT_ALLOW_CREATE_ORGANIZATION setting in your Gitea configuration.Organization Creation Code Example
Here’s how organizations are created in Gitea:models/organization/org.go:284-376
Organization Visibility
Organizations support three visibility levels:Public
Visible to everyone, including anonymous users
Limited
Visible only to authenticated users
Private
Visible only to organization members
Changing Organization Visibility
When you change an organization’s visibility, it affects:- All organization repositories
- Repository access permissions
- Issue indexing
- Fork visibility (cascades to all forks)
services/org/org.go:145-170
Organization Members
Organization members are users who belong to at least one team in the organization.Member Visibility
Members can choose to make their membership:- Public - Visible on the organization’s member list
- Private - Only visible to other organization members
DEFAULT_ORG_MEMBER_VISIBLE setting.
Adding Members
Members are automatically added to the organization when they join a team:models/organization/org.go:495-521
Managing Organization Settings
Organization owners can configure:- Profile - Avatar, description, location, website
- Repositories - Default repository settings
- Webhooks - Organization-wide webhooks
- Labels - Organization-wide labels
- Packages - Package registry settings
- Runners - CI/CD runner configuration
- Secrets - Organization-wide secrets for actions
Deleting an Organization
Before deletion:- All repositories must be transferred or deleted
- All packages must be removed
- Only organization owners can delete the organization
services/org/org.go:54-103
Frequently Asked Questions
Who can create organizations?
Who can create organizations?
Users who have the
CanCreateOrganization permission. This is controlled by:- Server configuration (
DEFAULT_ALLOW_CREATE_ORGANIZATION) - User-specific permissions set by administrators
What's the difference between an organization and a user?
What's the difference between an organization and a user?
Organizations:
- Cannot sign in directly
- Have multiple owners
- Support teams with granular permissions
- Are designed for collaborative work
- Can sign in and perform actions
- Own their own repositories
- Can belong to multiple organizations
How many owners can an organization have?
How many owners can an organization have?
An organization can have multiple owners. All owners have equal permissions and can:
- Manage all teams and members
- Access all repositories
- Modify organization settings
- Delete the organization
Can I transfer repositories to an organization?
Can I transfer repositories to an organization?
Yes, repository owners can transfer their repositories to any organization where they have permission to create repositories. The transfer is immediate and includes all issues, pull requests, and history.
What happens to forks when organization visibility changes?
What happens to forks when organization visibility changes?
When you change an organization’s visibility, the change cascades to all repositories and their forks. Making an organization private will:
- Make all organization repositories private
- Update access permissions
- Remove stars from repositories
- Update the issue indexer
Related Resources
- Teams - Learn about managing teams within organizations
- Permissions - Understand the permission model
- Repository Management - Managing organization repositories