# Microsoft Intune

## Connection Requirements

{% stepper %}
{% step %}

### Tenant ID and Client ID

Steps to create Tenant ID and Client ID:

* Log in to the Azure Portal with an administrator account.
* Select Azure Active Directory.
* Select App registrations > New registration. Fill in the details and click Register.
* After you have created the app, you should see its Application ID and Directory ID. Write down these values in a safe place. These values are known as Client ID and Tenant ID.
  {% endstep %}

{% step %}

### Client Secret

* In the left menu, select Certificates & Secrets > New Client Secret. Click Add and copy the secret value.
* In the left menu, select API Permissions > Add a permission. Then select APIs my organization uses and choose the Microsoft Graph API.
* Select Application Permissions for required permissions.
* Add the permission `DeviceManagementManagedDevices.Read.All`.

{% hint style="info" %}
🔵 secret value\
Make sure that you copy the secret *value*, not the secret ID.

Example:

```
Secret value: "H2jNYbOKrU"
Secret ID: 92355f2b-57af-4130-af44-62f091aa44e2
```

{% endhint %}
{% endstep %}

{% step %}

### Fetch MFA Data

Use this to fetch Multi-Factor Authentication (MFA) data for users related to the device (optional, default: False).
{% endstep %}

{% step %}

### SSL

Use SSL for connection (optional, default: Encrypted).
{% endstep %}

{% step %}

### Timeout

Define the maximum duration, in seconds, before the connection is automatically closed if there is no response. This field is optional and defaults to 60 seconds. Adjust this value if your network or server configuration requires a longer timeout period.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
⚠️ Attention\
Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.octoxlabs.com/adapters/adapters/microsoft-intune.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
