> For the complete documentation index, see [llms.txt](https://hub.equipme.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.equipme.io/pro/automation/connectors/microsoft-intune.md).

# Microsoft Intune

Microsoft Intune connector for providers: retrieve managed devices in customer tenants and set the device owner – combined with fulfillment in Equipme Pro.

**Path:** "Automation" → "Workflows" → flow designer → module **"Microsoft Intune"**

With the **Microsoft Intune connector**, you as a provider access the managed devices in your customers' Intune environments. It reads devices and sets the device owner. Combined with the ["Equipme Pro"](https://hub.equipme.io/pro/automation/connectors/equipme-pro.md) module, you connect delivery, service instances and device management: what you deliver to a customer employee is also assigned correctly in their Intune.

## What for?

* **Complete delivery:** a fulfillment order item is delivered → assign the device to the customer employee in the customer's Intune.
* **Enrich service instances:** store the operating system, version and last contact from Intune as metadata on the service instance in Pro.
* **Inventory reconciliation per customer:** compare the customer's Intune devices with their service instances in Pro and report deviations – e.g. as a basis for billing.
* **Swaps and returns:** before a swap, check which devices in Intune are still assigned to the employee.

## Prerequisites

* The enabled [automation module](https://hub.equipme.io/pro/automation.md)
* For each customer, a Microsoft account **in the customer's tenant** with the role "Intune Administrator" (or a role with read and write permissions on managed devices)
* A **Microsoft Intune** license in the customer tenant
* Consent to the permission for managed devices in the customer tenant (usually **admin consent** by the customer)
* For examples using customer data, a connection of the [equipme connector](https://hub.equipme.io/pro/automation/connectors/equipme-pro.md) with the "Equipme Pro" module

## Setting up the connection

1. In the flow designer, drag a component of the "Microsoft Intune" module onto the canvas (e.g. *ListDevices*).
2. Click **Connect account**.
3. Sign in with the account **in the customer's tenant** in the Microsoft sign-in window and accept the requested permissions.
4. The connection appears under **"Accounts"**. Give it a unique name that includes the customer name, and create a separate connection for each additional customer.

{% hint style="info" %}
A connection applies to exactly one tenant. "Microsoft Intune", ["Microsoft Entra ID"](https://hub.equipme.io/pro/automation/connectors/microsoft-entra-id.md) and ["Microsoft Dynamics 365 Business Central"](https://hub.equipme.io/pro/automation/connectors/microsoft-business-central.md) use the same Microsoft sign-in. All actions run with the permissions of the signed-in account.
{% endhint %}

## Triggers

The connector has **no triggers of its own**. Flows start via other triggers – e.g. a trigger of the ["Equipme Pro"](https://hub.equipme.io/pro/automation/connectors/equipme-pro.md) module (*New Fulfillment Order*, *New Fulfillment Parcel*), a schedule (Scheduler) or a webhook.

## Actions

| Component      | Purpose                                                                                                  | Important options                                                                   |
| -------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| ListDevices    | Read all managed devices – with device name, operating system, serial number, user and compliance status | none; returns the devices as one list                                               |
| GetDevice      | Read one managed device                                                                                  | Device ID (Intune device ID)                                                        |
| SetDeviceOwner | Set the device owner of a managed device                                                                 | Device ID, User principal name (UPN of the employee, e.g. `max.muster@company.com`) |

{% hint style="info" %}
*ListDevices* has no "Output Type" setting. To process the devices one by one, add a component that splits lists after it.
{% endhint %}

## Examples

### Assign the device to the customer employee after delivery

1. **Scheduler** – hourly (one flow per customer with the connection to their tenant).
2. **Equipme Pro › List Fulfillment Orders** – the customer's order items with confirmed delivery.
3. **Equipme Pro › Get Service Instance** – serial number and customer employee of the related service instance.
4. **Microsoft Intune › ListDevices** – read the customer's devices and use a **filter** to select the device with the same serial number.
5. **Microsoft Intune › SetDeviceOwner** – Device ID from step 4, UPN of the customer employee.
6. **Equipme Pro › Set Service Instance Metadata Entry** – store the Intune device ID on the service instance.

### Monthly inventory reconciliation per customer

1. **Scheduler** – monthly.
2. **Microsoft Intune › ListDevices** – all managed devices of the customer.
3. **Equipme Pro › List Service Instances** – active service instances of the customer (filter "Customers").
4. Compare both lists via the serial number; report deviations to the account manager via **Email › Send Email** or create a ticket in your own PSA.

## Notes and limitations

* The connector works with the devices **managed in Intune**. Devices that are only registered in Entra ID can be read with the [Entra ID connector](https://hub.equipme.io/pro/automation/connectors/microsoft-entra-id.md) (*ListDevices*, *ListUserDevices*).
* The device ID in Intune is not the same as the device ID in Entra ID. For Intune actions, always use the ID from *ListDevices* or *GetDevice* of this module.
* After the first reconciliation, store the Intune device ID as metadata on the service instance in Pro. Later flows can then use *GetDevice* directly.

## Troubleshooting

| Problem                                              | Cause / solution                                                                                                         |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Sign-in at "Connect account" asks for admin approval | A Global Administrator must consent to the permission for managed devices in the tenant.                                 |
| Error "Forbidden"                                    | The signed-in account lacks an Intune role, or the tenant has no Intune license.                                         |
| *GetDevice* does not find the device                 | The Entra ID device ID was passed instead of the Intune device ID.                                                       |
| *SetDeviceOwner* fails                               | Check the UPN (typo, account blocked or deleted).                                                                        |
| *ListDevices* returns an empty list                  | No devices are enrolled in Intune in the tenant, or the account only sees some devices because of restricted scope tags. |

You can find the logs of every run under **"Insights"**. For help, contact [support](https://hub.equipme.io/pro/help/support.md).

## Frequently asked questions

**Can one flow read the devices of several customers?**

No, each component uses a permanently selected connection and therefore exactly one customer tenant. Create one flow per customer; "Clone" copies a template quickly.

**Can the connector wipe or lock devices?**

No. It reads devices and sets the device owner. Perform remote actions such as locking or wiping directly in Intune.

**Which identifier links an Intune device to a service instance?**

The serial number is the most reliable. After the first reconciliation, store the Intune device ID as metadata on the service instance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hub.equipme.io/pro/automation/connectors/microsoft-intune.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
