--- title: 'Repository Permissions' license: 'CC-BY-SA-4.0' origin_url: 'https://codeberg.org/Codeberg/Documentation/src/commit/85d333f48badb27f8e4371263db3354f70836dfd/content/collaborating/repo-permissions.md' --- When you invite collaborators to join your repository or when you create teams for your organization, you have to decide what each collaborator/team is allowed to do. You can assign teams different levels of permission for each unit (e.g. issues, PR's, wiki). ## Profile and Visibility The visibility of your repositories will depend on the visibility of your profile, as well as whether you have marked a repository as private. Let's break down what this means: - If your profile's visibility is set to "Limited", _all_ of your non-private repositories will only be visible to logged in users. - If your profile's visibility is set to "Public", _all_ of your non-private repositories will be shown to everyone. - If you do not want anyone (apart from your fellow collaborators) to see your repositories, mark your repository as "Private". The visibility of your profile can be changed in the `Privacy settings`. Be careful when you set your profile's visibility to "Limited"; Even if a repository is public, users that are _not logged in_ will get a [404 error](https://en.wikipedia.org/wiki/HTTP_404) if they try to access your repository — it will seem as if it does not exist at all! ![screenshot showing the updated README](../_images/user/repo-permissions/user-settings-privacy-limited.webp) ## Collaborators There are four permission levels: **Read**, **Write**, **Administrator** and **Owner**. By default, the person who creates a repository is an **_Owner_**. The table below gives an overview of what collaborators are allowed to do when granted each of these permission levels:
Task | Read | Write | Admin | Owner |
---|---|---|---|---|
View, clone and pull repository | ✅ | ✅ | ✅ | ✅ |
Contribute pull requests | ✅ | ✅ | ✅ | ✅ |
Push to/update contributed pull requests | ✅ | ✅ | ✅ | ✅ |
Push directly to repository | ❌ | ✅ | ✅ | ✅ |
Merge pull requests | ❌ | ✅ | ✅ | ✅ |
Moderate/delete issues and comments | ❌ | ✅ | ✅ | ✅ |
Force-push/rewrite history (if enabled) | ❌ | ✅ | ✅ | ✅ |
Add/remove collaborators to repository | ❌ | ❌ | ✅ | ✅ |
Configure branch settings (protect/unprotect, enable force-push) | ❌ | ❌ | ✅ | ✅ |
Configure repository settings (enable wiki, issues, PRs, releases, update profile) | ❌ | ❌ | ✅ | ✅ |
Configure repository settings in the danger zone (transfer ownership, delete wiki data / repository, archive repository) | ❌ | ❌ | ❌ | ✅ |