Displayed username comes from organization.name (not account.display_name), with no UI to change it
Problem
Claude Code displays the user's name pulled from organization.name in the OAuth profile response (GET https://api.anthropic.com/api/oauth/profile), but there is no UI anywhere on claude.ai or console.anthropic.com to change a personal organization's name. The field account.display_name (which is editable via claude.ai profile settings) is not used.
This means users who updated their display name on claude.ai still see their original legal name shown in Claude Code — the one set at account creation time.
This was previously reported in #37232 (closed due to inactivity).
Steps to reproduce
- Create a Claude Max account
- Update display name on claude.ai (Settings → Profile) to something other than your legal name
- Open Claude Code — the original legal name from signup still appears, sourced from
organization.name
Root cause
The OAuth profile response has two separate name fields:
{
"account": {
"display_name": "<updated name>", // editable via claude.ai — NOT used by Claude Code
"full_name": "<updated name>"
},
"organization": {
"name": "<original signup name>", // set at signup, no UI to change — this IS what Claude Code displays
"organization_type": "claude_max"
}
}
Claude Code reads organization.name, not account.display_name.
Workaround (use at your own risk)
Personal organization names can be updated via an undocumented internal API endpoint, using your claude.ai browser session. Run the following from your browser's DevTools console while logged into claude.ai, substituting your own org UUID (visible in the OAuth profile response above):
fetch('/api/organizations/<your-org-uuid>', {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'Your Preferred Name' })
}).then(r => r.text()).then(console.log)
After running this and opening a new Claude Code session, the updated name appears correctly.
Suggested fix
Either:
- Read
account.display_nameinstead of (or as a fallback for)organization.name, or - Expose a UI on claude.ai to rename personal organizations
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗