# Azure Active Directory + BambooHR integration

> Keep your identity management and HR systems in sync — onboarding, offboarding, and every change in between.

**Canonical page:** https://tray.ai/connectors/azure-active-directory-bamboohr-integrations/
**Azure Active Directory connector:** https://tray.ai/connectors/azure-active-directory-integrations/
**Azure Active Directory documentation:** https://tray.ai/documentation/connectors/service/azure-active-directory
**BambooHR connector:** https://tray.ai/connectors/bamboohr-integrations/
**BambooHR documentation:** https://tray.ai/documentation/connectors/service/bamboohr

## Overview

Azure Active Directory (Azure AD) and BambooHR sit at the intersection of IT and HR, yet they're usually managed in silos that create friction, security gaps, and manual overhead. When an employee is hired, transferred, or terminated, that change needs to move instantly from your HR system of record into your identity and access management platform — and vice versa. Integrating BambooHR with Azure AD on tray.ai eliminates the lag between these systems and ensures every employee has the right access at the right time.

HR data in BambooHR drives the full employee lifecycle — new hires, role changes, department transfers, terminations — yet none of that context flows automatically into Azure Active Directory without manual intervention or expensive custom development. That gap means IT teams are constantly chasing HR for onboarding tickets, employees wait hours or days for provisioned accounts, and departing employees may retain access to sensitive systems far longer than they should. Connecting BambooHR to Azure AD through tray.ai lets you automate user provisioning, group membership updates, license assignments, and deprovisioning based on real-time HR events. The result is a faster, more secure, and more compliant workforce management process that scales as your company grows.

## Use cases

### Automated Employee Onboarding Provisioning

When a new hire record is created and activated in BambooHR, tray.ai provisions a fully configured Azure AD account with the correct licenses, group memberships, and role assignments based on the employee's department, title, and location. The new employee arrives on day one with everything they need.

- Cut provisioning time from days to minutes by eliminating manual IT tickets for every new hire
- Enforce consistent access policies by deriving Azure AD groups and licenses directly from BambooHR job data
- Give new hires day-one access to the applications and resources they actually need

### Real-Time Role and Department Transfer Updates

When an employee's job title, department, or manager changes in BambooHR, tray.ai updates their Azure AD profile attributes, reassigns them to the correct security groups, and adjusts Microsoft 365 license assignments to reflect their new role — no IT involvement required.

- Prevent privilege creep by removing old group memberships automatically when roles change
- Give employees access to new role-specific applications immediately upon transfer
- Keep directory data accurate for reporting, compliance audits, and conditional access policies

### Secure and Immediate Employee Offboarding

When a termination date is reached or an employee status is updated to terminated in BambooHR, tray.ai triggers an automated offboarding workflow in Azure AD that disables the account, revokes active sessions, removes group memberships, and optionally transfers mailbox ownership to a manager. Access is cut off at the moment of separation.

- Eliminate the risk of former employees retaining access to company systems and data
- Reduce IT workload during offboarding by automating account disablement and cleanup
- Create a complete audit trail of deprovisioning actions for compliance and security reviews

### Employee Profile Attribute Synchronization

Keep Azure AD user profiles current by syncing HR attributes from BambooHR — including display name, phone number, office location, cost center, and manager — whenever an employee updates their profile or HR makes a record change. Accurate directory data improves search, communication, and org chart accuracy across Microsoft 365.

- Maintain a single source of truth for employee data with BambooHR driving Azure AD attribute values
- Improve accuracy of Microsoft Teams and Outlook directories for all employees
- Support dynamic Azure AD group rules that depend on current HR attributes like department or location

### Contractor and Temporary Worker Lifecycle Management

Manage the full lifecycle of contractors and temporary workers tracked in BambooHR by automatically creating time-limited Azure AD accounts with appropriate access, sending expiry notifications before end dates, and deactivating accounts when engagements conclude. Contractors get exactly the access they need — nothing more.

- Automatically enforce access expiration dates for non-permanent workers without manual tracking
- Reduce the risk of orphaned contractor accounts sitting in Azure AD after engagements end
- Apply consistent provisioning policies for contractor onboarding, defined once in tray.ai

### Manager and Organizational Hierarchy Sync

When reporting structures change in BambooHR — new managers assigned, teams reorganized — tray.ai automatically updates the manager attribute and organizational unit assignments in Azure AD. This keeps Active Directory org charts accurate and ensures delegation policies, approval workflows, and Microsoft Viva Insights reflect real reporting lines.

- Keep Azure AD manager attributes current to support accurate Microsoft 365 org chart experiences
- Ensure manager-based conditional access and approval workflows always reference the correct approver
- Eliminate discrepancies between HR org structures and IT directory data during reorgs

### New Hire Welcome Notification and IT Readiness Workflow

Beyond provisioning the Azure AD account, tray.ai can trigger a broader onboarding workflow when a new hire appears in BambooHR — notifying IT of upcoming start dates, alerting managers when accounts are ready, and posting onboarding checklists to communication platforms. HR, IT, and manager actions all run off a single HR data event.

- Give IT teams advance notice of upcoming start dates to prepare hardware and access requests
- Automatically notify hiring managers when Azure AD accounts and email are provisioned and ready
- Cut coordination overhead by centralizing all new hire notifications in one automated workflow

## Templates

### New Employee: BambooHR to Azure AD Provisioning

Automatically creates a new Azure Active Directory user account and assigns licenses and group memberships whenever a new active employee record is created in BambooHR, mapping HR fields to Azure AD attributes.

Connectors used: BambooHR, Azure Active Directory

Steps:
1. Trigger: New employee record reaches 'Active' status in BambooHR
2. Fetch full employee profile including department, title, location, and manager from BambooHR
3. Create a new user in Azure Active Directory with mapped display name, UPN, and job attributes
4. Assign Microsoft 365 license based on employee type or department logic
5. Add user to relevant Azure AD security groups and Microsoft 365 groups based on department and role
6. Send confirmation notification to IT and HR with provisioning summary

### Employee Offboarding: BambooHR Termination to Azure AD Deprovisioning

Detects termination events in BambooHR and automatically disables the Azure AD account, revokes sessions, removes group memberships, and initiates mailbox transfer to the departing employee's manager.

Connectors used: BambooHR, Azure Active Directory

Steps:
1. Trigger: Employee status changes to 'Terminated' in BambooHR or termination date is reached
2. Retrieve employee's Azure AD object ID and manager information
3. Disable Azure AD account and revoke all active refresh tokens and sessions
4. Remove user from all Azure AD security groups and Microsoft 365 groups
5. Convert mailbox to shared mailbox and grant access to manager
6. Log all deprovisioning actions to a compliance record and notify IT security team

### BambooHR Profile Changes to Azure AD Attribute Sync

Monitors BambooHR for employee profile field updates and pushes changed attributes such as job title, department, office location, and phone number to the corresponding Azure AD user record in real time.

Connectors used: BambooHR, Azure Active Directory

Steps:
1. Trigger: BambooHR webhook or scheduled poll detects a changed employee field
2. Identify which fields have changed using a field comparison and filter for relevant attributes
3. Locate the corresponding user in Azure Active Directory by employee ID or email
4. Patch the Azure AD user record with updated attribute values from BambooHR
5. If department changed, update Azure AD group memberships to reflect new department groups

### Role Transfer: Automatic Azure AD Group Reassignment on BambooHR Job Change

When an employee's job title or department changes in BambooHR, this template removes them from their previous Azure AD role-based groups and adds them to new groups matching their updated position, preventing privilege accumulation.

Connectors used: BambooHR, Azure Active Directory

Steps:
1. Trigger: Job title or department field updated in BambooHR
2. Retrieve current Azure AD group memberships for the affected user
3. Determine target groups based on new department and title using tray.ai mapping logic
4. Remove user from groups associated with previous role
5. Add user to groups associated with new role
6. Notify manager and IT of the completed access change with a summary

### Contractor Account Management: Time-Limited Azure AD Access from BambooHR

Creates Azure AD accounts for contractors added to BambooHR with access automatically expiring on their contract end date, including pre-expiry alerts and automated deactivation.

Connectors used: BambooHR, Azure Active Directory

Steps:
1. Trigger: New contractor record created in BambooHR with employment type set to 'Contractor'
2. Provision a scoped Azure AD account with contractor-specific group memberships and limited licenses
3. Set account expiration date in Azure AD to match the contract end date from BambooHR
4. Schedule a reminder notification 7 days before expiration to IT and the contractor's manager
5. On expiration date, disable account and remove from all groups automatically

### Scheduled BambooHR to Azure AD Full Directory Reconciliation

Runs a nightly or weekly reconciliation between BambooHR employee records and Azure AD users to detect and correct discrepancies in attributes, group memberships, and account status.

Connectors used: BambooHR, Azure Active Directory

Steps:
1. Trigger: Scheduled run on a defined cadence (nightly or weekly)
2. Fetch all active employee records from BambooHR
3. Fetch all enabled user accounts from Azure Active Directory
4. Compare records to identify mismatches in attributes, missing accounts, or stale accounts
5. Apply corrections to Azure AD for out-of-sync attributes or group memberships
6. Generate and deliver a reconciliation report to IT and HR stakeholders

## Challenges Tray.ai solves

### Mapping Inconsistent Data Schemas Between HR and Identity Systems

BambooHR uses HR-centric field names and structures — department codes, employment types, cost centers — that don't directly correspond to Azure AD attribute names or expected formats. Building reliable field mappings that account for edge cases, null values, and evolving HR data models is a persistent headache.

**How Tray.ai helps:** tray.ai's visual data mapper and built-in transformation functions let teams define precise, maintainable mappings between BambooHR fields and Azure AD attributes without custom code. Conditional logic handles edge cases like missing values, and mappings can be updated centrally when HR data structures change.

### Handling Timing Gaps Between HR Events and IT Actions

Onboarding and offboarding actions in BambooHR often need to happen before or precisely at a specific date and time — a new hire's start date or a termination's effective date — not immediately when the record is created. Triggering Azure AD actions at exactly the right moment requires scheduling logic that goes well beyond simple webhooks.

**How Tray.ai helps:** tray.ai supports time-based triggers and delayed workflow execution, so teams can schedule Azure AD provisioning or deprovisioning actions to fire at a precise future date and time derived from BambooHR date fields. Actions happen at the right moment in the employee lifecycle, not just whenever the workflow first runs.

### Managing Azure AD Group and License Assignment Complexity

Figuring out which Azure AD security groups, Microsoft 365 groups, and licenses an employee should receive — based on their BambooHR department, title, location, and employment type — involves complex conditional logic that's hard to manage and audit, especially as organizational structures shift.

**How Tray.ai helps:** tray.ai's workflow logic supports multi-condition branching, lookup tables, and configurable mapping rules that translate BambooHR attributes into specific Azure AD group and license assignments. Business rules live visually in the workflow, making them auditable and easy to update without developer involvement.

### Ensuring Idempotency to Prevent Duplicate Provisioning

Integration workflows between BambooHR and Azure AD can fire multiple times due to webhook retries, polling overlap, or manual re-triggers. That creates real risk: duplicate Azure AD accounts, redundant group memberships, or repeated license assignments that inflate costs and cause access conflicts.

**How Tray.ai helps:** tray.ai workflows can be built with idempotency checks that query Azure AD for an existing user before creating a new one, and verify current group memberships before adding or removing them. Error handling and deduplication logic ensure that repeated triggers produce the same correct outcome without side effects.

### Maintaining Compliance Audit Trails Across Both Systems

Security and compliance teams need detailed audit records of every provisioning, deprovisioning, and access change event spanning both BambooHR and Azure AD — who triggered the change, when it happened, and what was modified. Producing those cross-system logs manually is slow and error-prone.

**How Tray.ai helps:** tray.ai provides workflow execution logs capturing every step, input, output, and timestamp for all integration runs. Teams can route structured audit events from each workflow execution to a central SIEM, data warehouse, or logging platform, creating a complete cross-system compliance trail.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
