/my-hr/my-team
📷 Screenshot: My Team showing the org-chart tree rooted on the current user’s team — to be added.
What you’ll see
The page resolves who you are from the same self-only profile the rest of My HR uses, then draws an org-chart tree for your business:- The tree starts at your team and expands a few levels deep by default.
- Click a person to focus the chart on them — the tree re-roots on that node so you can explore further down a branch.
- A Back to My Team button appears once you’ve drilled in, to return to the top.
How access is decided (self-only gating)
My Team finds your employee record through the self-only profile endpoint — the same one that powers My Profile. This matters because of a bug that used to affect this page: it previously tried to look you up through an admin “find employee by user” call, which an ordinary employee account isn’t allowed to make. That call was rejected, and the page wrongly showed “No employee profile linked” to employees who were, in fact, perfectly well linked. That has been fixed — the page now identifies you from your own record, not from an admin lookup, so genuinely-linked employees see their team.When the chart can’t load
The org-chart data itself comes from the HR org-chart service, which enforces its ownhr:read permission. There are two graceful outcomes worth knowing about:
- You’re linked but the chart can’t be drawn — you’ll see “Unable to load team chart. The endpoint may not be available yet.” rather than a crash.
- Your account isn’t linked to an employee record at all — you’ll see “No employee profile linked — contact HR.”
⚠️ Current state: Because the underlying org-chart endpoint requires thehr:readpermission, an ordinary employee who has not been granted any HR read permission may see the “unable to load” message even though they are correctly linked. In practice this page is most useful to managers and approvers who already have that access. If you believe you should see your team but the chart won’t load, ask HR whether your role includeshr:read. (Flagged for the team: My Team has no dedicated self-scoped team endpoint — it reuses the permission-gated org chart, so the “approve my team’s leave” capability implied for approvers is not yet wired into this page.)