---
title: "Restrict repository settings changes in Bitbucket"
canonical: "https://support.appfire.com/space/SUPPORT/811565573/Restrict%20repository%20settings%20changes%20in%20Bitbucket"
format: markdown
---
Bitbucket offers a project-level setting to control changes to repository settings. You can manage this using the Bitbucket CLI. Here’s how to do it.

## Settings options

- **Allow repository admins to manage permissions**.  
This is the default setting and allows repository administrators to modify permissions.
- **Don’t allow repository admins to manage permissions**.  
This setting restricts repository administrators from modifying permissions.

To set restrictions on repository settings using the command-line interface, follow these steps:

1. Allow repository admins to manage permissions:
2. Restrict repository admins from managing permissions:

![2024-03-07_11-45-50-20240307-061608.png](media://cf34d6aa-efa3-4c4b-a20b-23de2ba74e32)


> ℹ️ **Command Adjustments**
> ℹ️ 
> ℹ️ - For **Bitbucket versions 8.17.x and 8.18.x**, the provided commands should work as is.
> ℹ️ - For **versions 8.8 to 8.16**, if you encounter **Resource does not exist** error messages, change `api` to `ui` in the URLs.
> ℹ️ 
> ℹ️   Example commands for versions 8.8 to 8.16:
> ℹ️ 
> ℹ️ - Allow
> ℹ️ - Restrict