Skip to content

Setup → Users: after "Set Manager", an admin cannot find who a user's manager is #36017

Closed

Description

@os-bob

What happened

Reported from an app deployment running 18.6.0. A Setup user, logged in as an organization admin, maintains the reporting lines that a team-visibility rule and the approval routing depend on.

  1. Setup → Users → open a user → header ⋯ → Set Manager.
    • The dialog shows an empty Manager picker.
    • It does not say whether this user already has a manager, or who.
  2. To check, the admin looked through the user's record page:
    • Details has three sections: Identity, Account Status, Audit. No Manager.
    • The Organizations tab lists organization memberships (org, role, created). This is easy to mistake for "the user's organization structure", but it does not show the manager either.
    • The other tabs (Positions, Permission Sets, Business Units, Sessions, Linked Accounts, …) do not show it.
  3. The admin could not find a place in the Console that answers "who is this person's manager now?", or "who reports to this person?".

Afterwards we read sys_user.manager_id over the data API. The values the admin had set were all there and correct. So the setting works; only the reading back was the problem.

For reference, from source on main (3483407):

  • manager_id is a readonly field in the Organization group of sys_user.
  • The sys_user record page (packages/platform-objects/src/pages/sys-user.page.ts) lists explicit Details sections that do not include it.
  • The set_user_manager param is inline, and its comment notes that clearing the link (managerId: null) is not reachable from the action.

The questions the admin was left with

  • Where is a user's current manager meant to be seen in Setup, and the people who report to them?
  • Before re-pointing a manager, how is the admin meant to see what it is now, so that a setting is not overwritten by mistake?
  • If a manager was set by mistake, how is it removed (not replaced by someone else)?

We are not proposing a particular fix. Please judge whether this is intended, a gap, or a defect, and where the answer belongs.

Activity

  1. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    Contributor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (Setup) · pm:queue; rationale: area:identity · Bug · in Setup → Users, an org admin who uses "Set Manager" cannot see who a user's manager is: the dialog opens with an empty picker, and no section or tab of the user record shows the manager, although team visibility and approval routing depend on it; reported by an outside builder on 18.6.0 → p2 (UX rule; admins maintaining reporting lines) · size S (show the current manager in the dialog and on the record).

  2. added
    area:identity
    bug
    domain:ui
    pm:queue
    priority:p2
    on Nov 21, 2026
  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    Contributor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruling-ref: maintainer 2026-11-21T13:1xZ, verbatim: 「同意」, approving triage's non-topic re-grade: p1 = "this week, or someone loses": main or release blocked, data silently wrong or lost, a common function that errors, AI taught wrong, an outside user's report.

    2026-11-21T13:17Z · p2 → p1 on the maintainer's word: an outside user's report: an admin cannot see who a user's manager is. Lane and state unchanged.

  4. added
    priority:p1
    and removed
    priority:p2
    on Nov 21, 2026
  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

    Claim: PM loop · area a4-D · 2026-11-21T15:44Z
    Session: session_01FEkQ5okniknzVVR3KTSVr1
    Account: os-project-manager
    Branch: claude/issue-36017-show-user-manager
    Worktree: objectstack-issue-36017
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-D
    File surface: packages/platform-objects/src/pages/sys-user.page.ts, the set_user_manager action in packages/platform-objects/src/identity/sys-user.object.ts, their tests and translations; ui/packages/app-shell only if the action dialog cannot show the current value from metadata (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: opus (default tier; dispatch-gates --tier on the surface: "no path-derived mandate"), effort: high (seat order a4-D)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: sys_user page and action metadata in objectstack (packages/platform-objects) | none — no Setup surface reads manager_id back; only the data API does | org admins with platform-admin standing who maintain reporting lines; an outside builder reported it on 18.6.0
    Thread-read: 7063165416
    Premise: holds
    Pre-claim lane: repo:objectstack whole-repo lane; the fix paths are packages/platform-objects/src/pages/sys-user.page.ts and packages/platform-objects/src/identity/sys-user.object.ts (no other seated area leases them).
    Pre-claim deps: the card names no Blocked-by: and no "after #N"; open-PR scan (53 open PRs, their file lists) finds none touching the surface.
    Prior rulings read: setup,users,manager,admin,find,user → 148 hits; the surface's own: decision batch #127 item 1 (maintainer 2026-09-13, verbatim 「同意 经理 = 管理员在用户上显式设置的 manager_id;部门负责人 = 单元上的 manager_user_id,两者独立。」) and ruling record 6895645364 option A (SCIM-held identity refused at the write); ADR-0092 D2/D4 (manager_id stays readonly, written only by the endpoint). Reading it back on the record does not touch either. thread: none.
    Serial constraints cleared: none (no open PR or in-flight claim on these files at origin/main 3c06fc5)

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
    os-dev-report

    {
      "issue": 36017,
      "status": "done",
      "branch": "claude/issue-36017-show-user-manager",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36162",
      "session": "session_01FEkQ5okniknzVVR3KTSVr1",
      "premise_still_valid": true,
      "summary": "Setup now reads the reporting line back: the sys_user record page's Details tab gains a 'Reporting Line' section naming manager_id (still readonly, ADR-0092 D4) and a read-only 'Direct Reports' related list (sys_user on relationshipField manager_id, 11 locales). Set Manager opens on the current manager: its managerId param is now field-backed on manager_id with the existing defaultFromRow key (measured: the console resolver and paramToField never carry the field's readonly, so the picker stays editable). A new remove_user_manager action clears the link through the same endpoint with the existing bodyExtra key ({ managerId: null }), same requiredPermissions and standing term as Set Manager plus a row-state term (offered only while a manager is set), confirmText, no ai block, no client copy of any endpoint refusal. Zone 2 measured: #1 the console's record read (populate=manager_id) returns the manager record with its name on a booted showcase; #2 a self-referencing sys_user list filtered on manager_id answers 2 rows (control 0); #3 an existing key exists (defaultFromRow), no spec key added; #4 bodyExtra null survives both doors and the endpoint clears (manager_id reads null afterwards). Section named 'Reporting Line' rather than 'Organization' because the reporter confused the Organizations tab with the org structure; primary_business_unit_id left out because it is plugin-sharing's projection of the Business Units tab's source rows.",
      "tests": "At head 30de59af under os-verify-lock: `pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2` -> Test Files 125 passed (125), Tests 2126 passed (2126); `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/platform-admin-action-gate.test.ts` -> Test Files 1 passed (1), Tests 18 passed (18); `pnpm --filter @objectstack/platform-objects typecheck` and `pnpm --filter @objectstack/runtime typecheck` (incl. check:test-typecheck) -> VERDICT command-exit 0. New pins: sys-user-details-tab.test.ts (new describe: section holds manager_id; Direct Reports list = sys_user/manager_id/parent value id via RecordRelatedListProps; locales), sys-user-set-manager-action.test.ts (param field-backed + defaultFromRow replacing the INLINE pin; remove_user_manager: bodyExtra {managerId:null} key present, no params, confirmText, requiredPermissions == set_user_manager's, visible starts with set_user_manager's standing term, only record column manager_id, CEL offered/hidden verdicts, no ai), runtime platform-admin-action-gate.test.ts (REST door: admin forward to /api/v1/auth/admin/set-user-manager with userId and managerId present+null; member 403, nothing forwarded). Ablation via scripts/ablation-replace.mjs (both suites resolve platform-objects src, no dist leg): deleting the `bodyExtra: { managerId: null },` line -> anchor 1->0, blob 1845ce6f -> c2624ca6; runtime door test red (1 failed | 17 passed), declaration test red (1 failed | 16 passed); restore blob == HEAD 1845ce6f, git diff HEAD empty. Booted showcase (own port 38517, killed by recorded PID, tempdir removed): set via door 200; GET ...?expand=manager_id and list read populate=manager_id -> manager_id = {name: 'Dev Admin', ...}; reports filter 2 rows, control 0; served metadata keeps bodyExtra null, field+defaultFromRow, page sections/list; remove_user_manager door -> managerId null, manager_id null after, reports 1. Browser paint of the Console page NOT MEASURED (Console not built).",
      "gates": "Local subset at 30de59af (dispatch-gates --commands, 56 + 11 changeset families = 67; --ran reconciliation: '67 derived famil(ies) accounted for'): exit 0 for 64; NOT MEASURED (exit 3, prerequisite refusals, not findings): `node scripts/check-plugin-teardown-shape.mjs --self-test` (shallow clone cannot read pinned fixture 621a4876), `pnpm check:dual-build-cjs-loads` (needs whole workspace dist), `pnpm check:type-check-debt` (verify-lock queue-timeout exit 99 inside). `pnpm check:i18n` exit 0 after --write + hand translations. CI check-runs on 30de59af at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace), filter: in_progress; Test Core / Build Core / UI lanes not yet listed. test:repo not run locally (declared to CI).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, PR #36162, draft forced, body read back identical 8802 bytes) via repository_dispatch run 44928938760; post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36017/comments). git push x5 not counted (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: open PR #36133 also edits sys-user.page.ts; overlap-check reports a clean merge with this branch."
      ],
      "files_changed": 17,
      "net_added_lines": 312,
      "line_budget": "337 insertions / 25 deletions (282/25 excluding the 11 generated translation bundles)",
      "deviations": [
        "Commit trailers are model-free (Co-Authored-By: Claude) per the order and AGENTS.md, overriding the harness reminder's model-named trailer; the PR footer uses AGENTS.md's session-URL form instead of the reminder's line.",
        "The backend for measurement was booted with `pnpm -C examples/app-showcase exec objectstack dev --seed-admin` (the dogfood skill's spelling) instead of root `pnpm dev`, because check-dev-prereqs refuses until all 108 workspace packages are built; only the showcase closure was built.",
        "PM pin 'gate keys equal set_user_manager's': requiredPermissions and locations are equal, but visible is set_user_manager's standing term AND a row-state term (has(record.manager_id) && record.manager_id != null), so Remove is never offered for a user with no manager; pinned as 'starts with the standing term'.",
        "Order Zone 3 suggested an 'Organization' section; named 'Reporting Line' instead (reason in summary)."
      ]
    }
  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
    os-dev-report

    {
      "issue": 36017,
      "round": 2,
      "status": "done",
      "branch": "claude/issue-36017-show-user-manager",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36162",
      "head_sha": "e06f4b85bf4d8d65aefdc4aaee3cd54992f05102",
      "session": "session_01FEkQ5okniknzVVR3KTSVr1",
      "premise_still_valid": true,
      "summary": "Done: the REWORK item from L1-b (comment 7066700418). In packages/runtime/src/platform-admin-action-gate.test.ts, the case 'a plain member is refused 403 at the door ...' now also asserts the ADR-0112 envelope code on the REST refusal body: `expect(refused?.response?.body?.error?.code).toBe('PERMISSION_DENIED')`. One commit, e06f4b85, +2 lines, test only. Nothing else changed. I did not merge main.",
      "tests": "Under os-verify-lock at e06f4b85, after building `@objectstack/runtime^...` in the recreated worktree: `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/platform-admin-action-gate.test.ts` -> Test Files 1 passed (1), Tests 18 passed (18). `pnpm --filter @objectstack/runtime typecheck` (including check:test-typecheck OK) -> VERDICT command-exit 0. I also measured the code rather than assuming it: scripts/ablation-replace.mjs changed the expected value to 'NOT_A_CODE' (mutation landed, blob 0dcc98fb -> 2bcffd49) and the run went red with Expected \"NOT_A_CODE\", Received \"PERMISSION_DENIED\" (1 failed | 17 passed). The file was restored to HEAD (blob 0dcc98fb == HEAD, git diff HEAD empty).",
      "gates": "Only the ordered subset was run. Test file and runtime typecheck: exit 0 (above). overlap-check --branch: VERDICT clean exit 0; it lists #36133, #36163 and #36173 as sharing files and each merges cleanly. CI check-runs on e06f4b85 had not been read when this report was written.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36017/comments). The git push is not counted (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": 1,
      "net_added_lines": 2,
      "line_budget": "+2 / -0",
      "deviations": [
        "I recreated the worktree from origin/claude/issue-36017-show-user-manager at 30de59af. The commit trailer has no model name, which conflicts with the harness reminder's model-named trailer."
      ]
    }
    
  9. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

    Delivered · area a4-D · 2026-11-21T18:50Z
    PR #36162 merged (L1-b ACCEPT 7067179337, landing record 7067199440); the card closed through its Fixes line. pm:dispatched removed in this stroke; the assignee stays as the delivery record.
    Not measured by anyone: the Console dialog and the Details tab painted in a browser. The served metadata and the door were measured on a booted showcase.

  10. removed
    pm:dispatched
    on Nov 21, 2026
  11. added a commit that references this issue on Nov 22, 2026
    6943af1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:identitybugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions