# Sync Device Serialnumbers To Entraid Scheduled

### Description

This runbook retrieves Intune managed devices and syncs their serial numbers into an Entra ID device extension attribute. It can process all devices or only devices with missing or mismatched values and can optionally send an email report.

### Location

Organization → Devices → Sync Device Serialnumbers To Entraid (Scheduled)

**Full Runbook name**

rjgit-org\_devices\_sync-device-serialnumbers-to-entraid\_scheduled

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * Organization.Read.All
  * Device.ReadWrite.All
  * DeviceManagementManagedDevices.Read.All
  * Mail.Send

### Parameters

#### ExtensionAttributeNumber

Extension attribute number to update

| Property      | Value |
| ------------- | ----- |
| Required      | false |
| Default Value | 1     |
| Type          | Int32 |

#### ProcessAllDevices

If set to true, processes all devices; otherwise only devices with missing or mismatched values are processed.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | False   |
| Type          | Boolean |

#### MaxDevicesToProcess

Maximum number of devices to process in a single run. Use 0 for unlimited.

| Property      | Value |
| ------------- | ----- |
| Required      | false |
| Default Value | 0     |
| Type          | Int32 |

#### sendReportTo

Email address to send the report to. If empty, no email will be sent.

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

#### sendReportFrom

Email address to send the report from.

| Property      | Value                     |
| ------------- | ------------------------- |
| Required      | false                     |
| Default Value | <runbook@glueckkanja.com> |
| Type          | String                    |

[Back to Runbook Reference overview](/automation/runbooks/runbook-references.md)


---

# 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.realmjoin.com/automation/runbooks/runbook-references/org/devices/sync-device-serialnumbers-to-entraid_scheduled.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.
