Claude CodeAdvancedClaude Code
Block API key login so everything goes through SSO
With forceLoginMethod in managed settings, nobody sidesteps SSO or auditing by signing in with an API key.
forceLoginMethod sets the method ('claudeai' or 'console') and blocks API key login. forceLoginOrgUUID makes login fail if the account does not belong to your organization, which prevents personal accounts using a work email. They are distributed through the admin console (Teams/Enterprise), MDM or a file on the system.
Example
// managed-settings.json
{
"forceLoginMethod": "claudeai",
"forceLoginOrgUUID": "<your-organization-UUID>"
}