참고
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" } }