[BUG] OAuth token missing user:profile scope - prevents access to usage data and Claude Max features

Resolved 💬 3 comments Opened Jan 27, 2026 by pitcany Closed Jan 31, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I'm encountering a permission error when trying to use Claude Code that
prevents me from accessing my usage data and Claude Max subscription features.

What I've Tried:

  • /logout followed by /login - issue persists
  • The OAuth flow doesn't appear to be requesting the necessary user:profile

scope during authentication

What Should Happen?

Expected Behavior:
The OAuth login flow should request all necessary scopes, including
user:profile, to allow access to usage data and Claude Max features.

Error Messages/Logs

Error: Failed to load usage data:
    {"type":"error","error":{"type":"permission_error","message":"OAuth token
    does not meet scope requirement
  user:profile","details":{"error_visibility":"
    user_facing"}},"request_id":"req_011CXYY6Prebrc3xbc6e6uKe"}

Steps to Reproduce

Environment:

  • Claude Code version: 2.1.20
  • OS: macOS (Darwin 25.2.0)
  • Date: January 27, 2026

Steps to Reproduce:

  1. Run /login to authenticate
  2. Complete OAuth flow in browser
  3. Attempt to use Claude Code
  4. Error appears indicating the OAuth token doesn't have the user:profile

scope

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.20

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗