{
  "id": "aws/cognito-user-not-found-exception",
  "signature": "An error occurred (UserNotFoundException) when calling the AdminGetUser operation: User not found",
  "signature_zh": "发生错误 (UserNotFoundException)：调用 AdminGetUser 操作时：未找到用户",
  "regex": "UserNotFoundException.*AdminGetUser.*User not found",
  "domain": "aws",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The specified user does not exist in the Amazon Cognito user pool, possibly due to incorrect username, user deletion, or using a user pool ID from a different environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的用户在 Amazon Cognito 用户池中不存在，可能是因为用户名错误、用户已删除或使用了不同环境的用户池 ID。",
  "versions": [
    {
      "version": "Cognito User Pools API 2016-04-18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AWS SDK for JavaScript 3.600.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Re-running the same AdminGetUser call with the same credentials, expecting a different result.",
      "why_fails": "The user truly does not exist; retrying does not create or recover the user.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Modifying IAM permissions to allow all cognito-idp actions, assuming it's a permission issue.",
      "why_fails": "The error is UserNotFoundException, not AccessDenied; permissions are sufficient.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the username exists by listing users in the pool: `aws cognito-idp list-users --user-pool-id <pool-id> --query \"Users[?Username=='<username>']\"`. If missing, re-create the user with `aws cognito-idp admin-create-user --user-pool-id <pool-id> --username <username>`.",
      "success_rate": 0.95,
      "how": "Verify the username exists by listing users in the pool: `aws cognito-idp list-users --user-pool-id <pool-id> --query \"Users[?Username=='<username>']\"`. If missing, re-create the user with `aws cognito-idp admin-create-user --user-pool-id <pool-id> --username <username>`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check that the user pool ID in the request matches the correct environment (dev vs prod) and that the user was not accidentally deleted via AWS Console or API.",
      "success_rate": 0.85,
      "how": "Check that the user pool ID in the request matches the correct environment (dev vs prod) and that the user was not accidentally deleted via AWS Console or API.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the username exists by listing users in the pool: `aws cognito-idp list-users --user-pool-id <pool-id> --query \"Users[?Username=='<username>']\"`. If missing, re-create the user with `aws cognito-idp admin-create-user --user-pool-id <pool-id> --username <username>`.",
    "Check that the user pool ID in the request matches the correct environment (dev vs prod) and that the user was not accidentally deleted via AWS Console or API."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/cognito/latest/developerguide/error-messages.html",
  "official_doc_section": null,
  "error_code": "UserNotFoundException",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-05-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}