Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

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>"
}
#managed-settings#sso#security#enterprise