Skip to content

How to build an IT access agent with Tray Helix

New hires wait days for access while IT copies a peer's groups by hand. This agent proposes the access and grants it only after IT approves.

Last reviewed November 2026

App, built with Tray Helix

The short answer

An IT access agent reads a new hire's role and team from the HR system, looks at what people in the same role hold, and proposes an access bundle with a reason for each item. Granting is a tool marked for approval, so the run pauses and shows IT the exact groups and systems before anything changes. After approval the agent grants the access, records it, and tells the manager.

it-access.helix-app.ai

IT Access Agent

4

Starting Monday

3

Awaiting approval

11

Granted this week

Dana Ruiz, Sales Engineer

Starts Monday · Team: Solutions · Manager: Sam Cole

Proposed groups
sales-eng, demo-env, crm-read
Proposed systems
Salesforce (read), Gong, Demo workspace
Not proposed
finance-reports: held by 1 of 6 peers
Tool waiting
grantAccess, needs approval

Agent run

  • 09:02 Read the new hire from Workday Agent
  • 09:02 Compared access held by 6 Sales Engineers in Okta Agent
  • 09:03 Proposed 3 groups and 3 systems, one reason each Agent
  • 09:03 Paused: grantAccess needs approval Agent
A sketch of one run. The agent did the lookup and the comparison; the grant waits for a person.

What matters here

  • An IT access agent proposes access from the new hire's role and from what peers in that role hold, with a reason for each item.
  • Granting access is a tool marked for approval, so a person sees the exact groups and systems before anything changes.
  • Proposing from peers catches the access a role really needs, and flags the outliers a peer holds that the new hire should not inherit.
  • The agent reads freely and writes only through approved tools, so a wrong proposal costs a decline, not a cleanup.
  • Every run, proposal, approval and grant is logged under the request that started it, which is the evidence an access review asks for.

Who this is for

You run IT or identity. You know which groups and systems each role needs, roughly, and you are tired of copying them by hand from a peer's account on a new hire's first morning.

How it works in practice

What happens from the moment a new hire lands in the HR system to the moment they can sign in.

  1. 1

    A new hire appears

    A scheduled function checks the HR system for people starting soon, or a Tray workflow calls the app when a hire is created.

  2. 2

    The agent reads the role

    Title, team, location and manager, from the HR system rather than from a ticket someone typed.

  3. 3

    It compares peers

    It looks at the groups and systems people in the same role hold, and keeps what most of them share.

  4. 4

    It proposes, with reasons

    Each group and system comes with one line on why. Access only one peer holds is listed as not proposed.

  5. 5

    IT approves

    grantAccess is marked for approval, so the run pauses and shows the exact input. IT approves, edits or declines.

  6. 6

    It grants and tells the manager

    After approval the agent grants the access, records each grant, and posts a summary to the manager.

What an IT access agent is made of

Four parts. The agent does the reading and reasoning, and the app holds the record.

A role map

The groups and systems each role should start with, kept in the app's database and editable by IT.

Read tools

Look up the new hire, and look up what peers in the same role hold. These run without approval.

One write tool, gated

grantAccess adds the person to groups and systems. It is marked for approval, so every grant waits for a person.

A record of every grant

What was proposed, what was approved, who approved it and when, kept apart from the run log.

The prompts

Paste these into Claude Code, Codex or Cursor in order. Each one leaves you with something that runs, so you can stop after any step.

These prompts start from a Helix project, which is what handles sign-in, credentials and hosting. Start with Helix.

1

The app and the role map

Where proposals and grants live.

Claude Code, Codex or Cursor

Create a Helix app: an IT access agent for new hires.

Store new hires with name, role, team, location, manager and start date. Store a role map: for each role, the groups and systems it starts with, editable by IT. Store proposals and grants separately. A proposal is what the agent suggested, with a reason per item. A grant is what was approved and applied, by whom and when.

Show a list of new hires starting in the next two weeks, each with the status of its proposal: not started, awaiting approval, granted or declined.

2

The agent and its tools

Read freely, propose with reasons, write only after approval.

Claude Code, Codex or Cursor

Add an agent to the app that prepares access for a new hire.

Give it these tools:

- getNewHire: read the person's role, team, location and manager.

- getPeerAccess: list the groups and systems held by people with the same

role and team, with how many of them hold each one.

- getRoleMap: read what IT says this role starts with.

- grantAccess: add the person to a list of groups and systems.

Mark grantAccess as needing approval, every time. The agent must never grant anything without a person approving the exact input.

The agent proposes the role map plus anything most peers share, with one line of reason for each item. Anything only one or two peers hold goes in a "not proposed" list with the count, so IT can see it and choose.

Approval shows the approver the tool and the exact input the model proposed, and the run picks up where it left off once they decide.
3

Start it on its own

No one has to remember to run it.

Claude Code, Codex or Cursor

Every morning, run the agent for each new hire starting in the next five working days who has no proposal yet.

When a proposal is waiting, post to the IT channel in Slack with the person, their role and a link to the approval.

After grantAccess runs, record each grant, and send the manager a short summary of what the new hire can open on day one.

4

Connect it to real systems

Real people, real groups.

Claude Code, Codex or Cursor

Now connect it to the systems we actually run.

Anything in angle brackets is a placeholder. Swap it for whatever we use.

<Workday>. Read new hires and their role, team, manager and start date.

<Okta>. Read the groups peers hold, and add the new hire to groups when grantAccess is approved.

<Google Workspace>. Add the new hire to groups and shared drives when grantAccess is approved.

<Slack>. Post proposals to the IT channel and summaries to the manager.

<Jira>. Open a task for any system the agent cannot grant itself.

Only write through grantAccess and the notifications. Everything else is read only.

Tray holds each credential as a workspace authentication, so the app references a name and never the secret itself.
5

Ship it

A URL, and the right people on it.

Claude Code, Codex or Cursor

Deploy my app.

Your assistant runs helix deploy and the app comes back as a URL. Set Access Control so only IT can approve grants.

What it connects to

The agent reads from HR and identity, and writes only through the one tool that waits for approval.

Named systems are the ones most teams actually run, not a list of the only ones that work. Swap in whatever you use.

Running it for real

The build gets you a working agent. It touches who can open what, so how it runs matters as much as what it proposes.

  1. 1

    Deploy the app and its agent together

    One command, or Deploy from CI on every merge, takes the app to a live URL. The agent ships with its app, so you can roll back any deployment.

  2. 2

    Approval on the tool that grants

    grantAccess waits for a person every time. The approver sees the tool and the exact groups and systems, and SSO decides who can approve.

  3. 3

    Credentials held by Tray

    The Okta and Google Workspace credentials are held in Tray, not in the code, so they can be rotated without a redeploy.

  4. 4

    A named owner and every step logged

    The app and its agent have a named owner. Every run and tool call is logged under the request that started it, and Tray streams the logs to your SIEM.

  5. 5

    Know what each run costs

    AI usage shows per app, so the agent's cost sits next to the work it did.

Questions people ask

What does an IT access agent do?

It reads a new hire's role from the HR system, compares the access peers in that role hold, and proposes groups and systems with a reason for each. It grants them only after IT approves the exact input.

Can the agent grant access without approval?

Not in this build. grantAccess is marked as needing approval every time, so the run pauses until a person approves, edits or declines. We recommend approval on every tool that writes.

Why compare against peers instead of only a role map?

Role maps go stale. Peers show what the role really uses today, and the counts show outliers, such as a finance report only one person holds, that a new hire should not inherit by default.

What systems can the agent reach?

Any system the app connects to through Tray, which connects to 12,000+ apps, databases, APIs, and services. Credentials are held by Tray, and the agent can only use the tools in the app's code.

Can I build this without an engineering team?

Yes. The prompts here are written for Claude Code, Codex or Cursor and stage the build. The work outside the prompts is agreeing the role map with each system owner.

Build it, then run it properly

Helix is the governed runtime for AI-built apps and agents. Deploy what you build, put SSO in front of it, connect it to your systems with managed credentials, and give it a named owner.