Примечание.
This feature is in Публичный предварительный просмотр and subject to change.
You can prevent users from using modes that enable automatic approval of agent commands in Второй пилот CLI and VS Code. The disableBypassPermissionsMode setting is defined in your enterprise's managed-settings.json file and applies to users on your enterprise's Copilot plan.
This setting blocks users from using:
- The
--yoloor--allow-allflag - The
/yoloor/allow-allcommand - All runtime paths that enable combined bypass mode
This setting does not block individual flags such as --allow-all-tools or --allow-all-paths.
-
In your enterprise's
.github-privaterepository, navigate to the.github/copilot/directory. If you haven't set a.github-privaterepository as your enterprise's source of agent configuration, see Подготовка к использованию пользовательских агентов на предприятии. -
Create or edit the
managed-settings.jsonfile. (This file was previously namedsettings.json, which is also supported.) -
Add the following property.
JSON { "permissions": { "disableBypassPermissionsMode": "disable" } }{ "permissions": { "disableBypassPermissionsMode": "disable" } }