Skip to content

As of

How to set access rules from title, team and office in your HR system

You set access rules from your HR system by making it the source of truth for who someone is, and writing policies against those attributes: title, team, department, office, manager and employment type. A rule such as "everyone in Sales gets the CRM" or "contractors never get production access without a sponsor" then applies automatically when someone joins, changes roles or leaves, because the HR record changes first. The rules stay short, the exceptions go to a named approver, and IT stops maintaining access by hand.

This guide covers why HR data is the right foundation, how to write the rules, and how to handle the edge cases.

Why access rules should come from HR data

  • HR changes first. A hire, a promotion, a team move or a departure is recorded in the HR system before anyone files a ticket.
  • It is already accurate. Payroll depends on it, so titles, teams and managers are kept up to date.
  • It covers everyone. Every employee and contractor has a record, including people IT has never heard from.

Rules based on group memberships someone maintains by hand drift over time. Rules based on HR attributes move with the organization.

Which attributes to use

AttributeGood forExample rule
Department or teamThe core apps a team works inEveryone in Sales gets a CRM license
Title or levelElevated or admin accessEngineering managers can approve staging access for their team
Office or regionLocation-specific tools and data rulesEU employees use the EU instance of the support tool
Employment typeContractor and intern limitsContractors get no production access without a sponsor
ManagerWho approves exceptionsRequests outside the rules go to the person's manager
Start and end dateWhen access begins and endsAccess is ready the day before the start date and ends on the last day

How to write the rules

  1. Start from what people use today. Group current employees by team and title and list the access most of them share. That is your first rule set.
  2. Keep rules broad, exceptions explicit. A few rules that cover most people, plus a named approver for everything else, beat a rule for every edge case.
  3. Write rules in plain language first. "Contractors get no production access without a sponsor" is easier to review and agree than a configuration screen. In STLabs, for example, security can tighten contractor access by updating the policy, with nothing reconfigured.
  4. Decide what each rule does: grant the access, block the request, or require approval.
  5. Test against real records. Before turning a rule on, check who it would grant or remove access for.

Handling the edge cases

  • Role changes. When someone moves teams, rules should remove the access tied to the old team, not just add the new.
  • Missing or wrong HR data. Route requests from records with missing attributes to a person, and fix the record at the source.
  • Temporary needs. A project that needs access outside someone's role is a time-limited exception with an end date, not a rule change.
  • Sensitive systems. For production, finance and admin access, rules should require approval even when the attributes match.

How STLabs applies access rules

In STLabs, your team writes policies once and they are enforced on every request, the same way in Slack, Teams and the web portal. A rule can allow a request, block it or require approval, and the workflow waits for the decision before it acts.

  • Axiom™ brings together data from your HR, identity, device and app tools, including each employee's team, so policies work from current information.
  • Access changes automatically when employees join, change roles or leave. See the access lifecycle.
  • Every decision is logged with the rule applied and the approver.

Frequently asked questions

What is attribute-based access control?

Attribute-based access control (ABAC) grants access based on attributes of the person, such as team, title, location and employment type, rather than on a fixed list of groups. HR data is the most common source of those attributes.

What if our HR data isn't clean?

Start with the attributes you trust most, usually department and employment type, and send requests with missing or conflicting data to a person. In STLabs, a policy can require approval, so a request that does not match a rule goes to a person instead of being guessed.

Should rules ever grant production access automatically?

Rarely. Most teams pre-approve staging or read-only access by rule and require a named approver for production, with access that expires. STLabs policies allow, block or require approval for each request, and every decision is logged with the rule applied and the approver.

See it on your tools.