{
  "id": "ISSUE-1582-02",
  "name": "User Create succeeds with Salesforce-standard minimal payload (smoke test for #1582 symptom)",
  "description": "Smoke test for the original #1582 symptom: a minimal SF-frontend-style User payload (Username/Email/FirstName/LastName/ProfileId) must return 201. NOTE: on a fresh e2e-api install the User table does not contain the staging's legacy discovered columns (UserPreferences*), so this case does NOT directly exercise ComputeIntrinsic Layer 1d; the Layer 1d path is covered by the unit tests in shared/pkg/fieldcapabilities/capabilities_test.go (15 tests) which run in CI. A proper staging-replica e2e for Layer 1d would require (a) ALTER TABLE to inject a discovered column, (b) INSERT _System_Field row with Source='discovered' Required=1, (c) a POST /admin/metadata/refresh endpoint to invalidate the schema cache — (c) does not exist today; see follow-up #1653.",
  "object": "User",
  "method": "POST",
  "endpoint": "/services/data/v63.0/sobjects/User",
  "payload": {
    "Username": "issue1582-{rand}@test.com",
    "Email": "issue1582-{rand}@test.com",
    "FirstName": "Issue1582",
    "LastName": "Tester",
    "ProfileId": "{seed_Profile_StandardUser}"
  },
  "expects": {
    "status_code": 201
  },
  "teardown": {
    "method": "DELETE",
    "endpoint": "/services/data/v63.0/sobjects/User/{id}"
  },
  "priority": "P1",
  "bug_ref": "#1582",
  "scene": "issue-1582"
}
