# Microsoft Intune + Azure Active Directory integration

> Connect endpoint security and identity management by integrating Intune and Azure AD through tray.ai's no-code automation platform.

**Canonical page:** https://tray.ai/connectors/microsoft-intune-azure-active-directory-integrations/
**Microsoft Intune connector:** https://tray.ai/connectors/microsoft-intune-integrations/
**Microsoft Intune documentation:** https://tray.ai/documentation/connectors/service/microsoft-intune
**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

## Overview

Microsoft Intune and Azure Active Directory are the two load-bearing pieces of Microsoft's modern endpoint and identity management stack. Intune handles how devices are enrolled, configured, and secured. Azure AD controls who has access, under what conditions, and with which privileges. Together, they enforce a Zero Trust security posture — but without automation, keeping user identities, group memberships, device compliance states, and access policies in sync requires constant manual work across both portals.

Organizations running Microsoft 365 depend on Intune and Azure AD working together to enforce conditional access, manage device lifecycle events, and make sure only compliant, enrolled devices can reach sensitive corporate resources. When a new employee is onboarded in Azure AD, their device should be automatically enrolled in Intune, assigned the right compliance policies, and placed in the appropriate device group — without IT touching three separate consoles. When an employee is offboarded or changes roles, their device enrollment status, app assignments, and access rights need to be revoked or updated immediately. Integrating these two services via tray.ai removes the lag, cuts human error, and gives IT and security teams a single automated workflow engine that connects identity events in Azure AD with device management actions in Intune.

## Use cases

### Automated User Onboarding with Device Enrollment

When a new user is provisioned in Azure Active Directory, tray.ai can automatically trigger an Intune enrollment invitation, assign the correct device compliance profile based on the user's department or role group, and add the device to the appropriate Intune device group. This removes the manual coordination between HR, IT provisioning, and endpoint management teams that typically delays new-hire productivity.

- Reduce new-hire device setup time from days to minutes
- Ensure correct compliance policies are applied from day one
- Eliminate manual cross-portal configuration tasks for IT admins

### Offboarding and Device Wipe Automation

When a user account is disabled or deleted in Azure AD — triggered by an HR system or manual action — tray.ai can automatically initiate a remote wipe or retire action on all Intune-managed devices tied to that user. The workflow can also revoke app licenses, remove the device from Intune groups, and log the offboarding action for compliance auditing.

- Eliminate data leakage risk from orphaned devices post-offboarding
- Cover both identity and device layers in a single offboarding pass
- Maintain a full audit trail for compliance and legal holds

### Conditional Access Policy Enforcement Based on Device Compliance

tray.ai can monitor Intune device compliance status changes and automatically update Azure AD Conditional Access policy assignments or named locations when devices fall out of compliance. Non-compliant devices get flagged, access gets blocked, and IT teams get notified — all without manual policy review cycles.

- Enforce Zero Trust access in near real time
- Reduce the window between compliance failure and access revocation
- Automatically notify device owners and helpdesk teams of compliance issues

### Role-Based Device Group Management

As users change roles or departments in Azure AD, tray.ai can automatically move their managed devices into the appropriate Intune device groups, so configuration profiles, app deployments, and compliance policies always reflect the user's current organizational context. Device configurations stay accurate with business role changes without anyone manually re-grouping them.

- Keep Intune device groups accurate with zero manual maintenance
- Automatically push the right apps and policies after role changes
- Reduce misconfiguration risk from stale device group memberships

### Security Incident Response and Device Isolation

When Azure AD Identity Protection detects a risky sign-in or a compromised account, tray.ai can trigger an Intune workflow to isolate the associated device, force a compliance re-check, or push an emergency configuration profile while the security team investigates. You get an automated first-response layer between identity threat detection and endpoint action.

- Accelerate incident response with automated device isolation
- Connect identity risk signals directly to endpoint enforcement
- Reduce mean time to contain (MTTC) for compromised device scenarios

### App Assignment Automation Based on Azure AD Group Membership

tray.ai can watch for Azure AD group membership changes and automatically update Intune application assignments so users always have the apps they need based on their current group affiliations. When a user joins a project team or moves to a new department, their managed app portfolio updates automatically across their enrolled devices.

- Eliminate app deployment delays caused by manual Intune assignment updates
- Ensure users have the tools they need immediately upon group assignment
- Reduce over-provisioning by removing apps when users leave groups

### Device Compliance Reporting and Audit Sync

tray.ai can periodically pull device compliance data from Intune and cross-reference it against Azure AD user and group records to generate unified compliance reports, flag discrepancies, and push summary data to a SIEM, data warehouse, or ticketing system. Security and audit teams get a consolidated view without manual exports from two separate admin portals.

- Automate compliance reporting across identity and device data sources
- Reduce manual effort required for audit preparation
- Catch compliance drift before audits do

## Templates

### New Azure AD User → Intune Enrollment and Policy Assignment

Automatically detects new user creation events in Azure Active Directory and triggers an Intune device enrollment invitation, assigns the appropriate compliance policy based on the user's department attribute, and adds the user to the correct Intune device group.

Connectors used: Azure Active Directory, Microsoft Intune

### Azure AD User Disable → Intune Device Retire and Wipe

When a user account is disabled or deleted in Azure AD, this template automatically locates all Intune-managed devices tied to that user, initiates a remote wipe or retire action, removes the user from Intune groups, and logs the offboarding event to a designated compliance record store.

Connectors used: Azure Active Directory, Microsoft Intune

### Intune Device Non-Compliance → Azure AD Conditional Access Block

Monitors Intune device compliance state changes and, when a device goes non-compliant, automatically updates the associated Azure AD user's conditional access state, triggers an alert to the IT helpdesk, and notifies the device owner to remediate the issue.

Connectors used: Microsoft Intune, Azure Active Directory

### Azure AD Group Membership Change → Intune App Assignment Sync

Detects changes to Azure AD group membership and automatically syncs Intune app assignments so that when users join or leave a group, their managed app portfolio updates across all enrolled devices without manual IT intervention.

Connectors used: Azure Active Directory, Microsoft Intune

### Azure AD Identity Protection Risk Event → Intune Device Isolation

When Azure AD Identity Protection flags a user as high-risk or detects a risky sign-in, this template automatically locates the user's Intune-managed devices, pushes a restrictive compliance policy, and notifies the security operations team with full context for investigation.

Connectors used: Azure Active Directory, Microsoft Intune

### Scheduled Intune Compliance + Azure AD User Audit Report

Runs on a configurable schedule to pull current device compliance data from Intune and active user records from Azure AD, joins the data to identify compliance gaps, orphaned devices, and unlicensed users, and delivers a unified audit report to designated stakeholders.

Connectors used: Microsoft Intune, Azure Active Directory

## Challenges Tray.ai solves

### Real-Time Sync Between Identity Events and Device Actions

Azure AD user lifecycle events — provisioning, role changes, deactivation — happen continuously and need to show up immediately in Intune device policies and group assignments. Polling for changes manually or relying on native sync intervals introduces dangerous lag, especially during offboarding where every minute of delay is a security risk.

**How Tray.ai helps:** tray.ai uses event-driven triggers connected to Azure AD webhooks and Microsoft Graph API event notifications to detect identity changes in near real time and immediately execute corresponding Intune actions, cutting the latency that comes with scheduled sync jobs or manual processes.

### Complexity of Multi-Step Onboarding and Offboarding Workflows

Properly onboarding or offboarding a user across Intune and Azure AD involves many sequential and conditional steps — enrollment invitations, policy assignments, group placements, license allocation, device wipes — that span both platforms and often depend on user attributes like department and location. Managing this manually across two admin portals is error-prone and inconsistent.

**How Tray.ai helps:** tray.ai's visual workflow builder lets IT teams build multi-step, conditional logic workflows that read user attributes from Azure AD and use them to drive the correct sequence of Intune actions. Every onboarding and offboarding comes out complete, consistent, and auditable regardless of who runs it.

### Microsoft Graph API Authentication and Token Management

Both Intune and Azure AD are managed via the Microsoft Graph API, which requires careful OAuth 2.0 token management, correct permission scoping, and handling of token expiration across long-running or scheduled workflows. Teams managing these integrations manually have to build and maintain their own token refresh logic and permission grant processes.

**How Tray.ai helps:** tray.ai's pre-built Microsoft Intune and Azure Active Directory connectors handle OAuth 2.0 authentication, token refresh, and permission scoping natively, so IT teams can build and run workflows without writing or maintaining a single line of authentication code.

### Mapping Conditional Logic Across Two Independent Data Models

Azure AD and Intune use overlapping but distinct data models — users, groups, devices, and policies are represented differently in each system. Creating correct mappings between Azure AD group types and Intune device groups or compliance policies requires deep knowledge of both platforms and careful data transformation logic.

**How Tray.ai helps:** tray.ai has a data mapping and transformation layer that lets teams visually define how Azure AD attributes and object types translate to corresponding Intune constructs, making it straightforward to build accurate, maintainable cross-platform logic without custom scripting.

### Audit Logging and Compliance Evidence Across Both Platforms

Enterprise compliance frameworks like SOC 2, ISO 27001, and NIST require organizations to show that device management and identity access controls are consistently enforced and that all changes are logged. Manually exporting and reconciling audit logs from both the Azure AD and Intune admin portals is time-consuming and leaves gaps in coverage.

**How Tray.ai helps:** tray.ai automatically logs every workflow execution, trigger event, and API action taken across both Intune and Azure AD, producing a unified, immutable audit trail that compliance teams can reference directly or export to a SIEM or GRC platform as evidence of control enforcement.

## 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/
