Insights & updates from our experts
Overview
Connects to Microsoft Entra ID and Microsoft Intune via the Microsoft Graph API to read groups, group members, and managed devices into Xurrent, and to act on Intune devices: sync, restart, lock, reset the passcode, retire, wipe, Fresh Start, run a Defender scan, rename, change the primary user, collect diagnostics, and delete. It also reads local administrator passwords and BitLocker recovery keys, rotates local administrator passwords, assigns Windows Autopilot devices to users, and approves, denies or revokes Endpoint Privilege Management (EPM) elevation requests. To manage Entra users, licenses and groups, or to start workflows when they change, use the Microsoft Entra connector.
To install or uninstall software on a device, or to grant or remove temporary local administrator rights, add or remove a member of the Entra group that the app or the local administrator policy is assigned to, with the Add member to Entra group and Remove member from Entra group actions of the Microsoft Entra connector.
Actions whose name ends in (Beta) use the Microsoft Graph beta API, which Microsoft can change. Change primary user (Alpha) uses a call that Microsoft does not document and can change or remove without notice.
Prerequisites
- A Microsoft Entra ID (formerly Azure AD) tenant with a Microsoft Intune license.
- An app registration in Microsoft Entra. Obtain:
- Tenant ID: GUID visible in Microsoft Entra → Overview → Tenant ID.
- Client ID: visible on the app registration's Overview page.
- Client Secret: created under the app registration's Certificates & secrets. Copy the value at creation time; it is not shown again.
- API permissions granted on the app registration (type: Application), with admin consent. Grant only the ones for the actions you use:
GroupMember.Read.All: used by Entra group ID from name and Retrieve Entra group members.Device.Read.All: lets Retrieve Entra group members read thedevice_idof members that are devices. Without it, Microsoft Graph returns nodeviceIdfor a device member, and the action fails the job withNot all devices have deviceId.DeviceManagementManagedDevices.Read.All: used by Managed devices from Intune.DeviceManagementManagedDevices.PrivilegedOperations.All: used by Sync Intune device, Restart Intune device, Remote lock Intune device, Reset Intune device passcode, Retire Intune device, Wipe Intune device, Fresh Start Intune device, Run Defender scan on Intune device, Rename Intune device (Beta) and Rotate Intune local admin password (Beta).DeviceManagementManagedDevices.ReadWrite.All: used by Delete Intune device record, Collect Intune device diagnostics (Beta) and Change primary user (Alpha). Microsoft does not document which permission Change primary user (Alpha) needs, so this one is our best guess.DeviceManagementServiceConfig.ReadWrite.All: used by Assign Autopilot device to user.DeviceManagementConfiguration.ReadWrite.All: used by Approve Intune EPM elevation request (Beta) and Deny or revoke Intune EPM elevation (Beta).DeviceLocalCredential.Read.All: used by Get Intune device local admin password.BitlockerKey.Read.All: used by Get BitLocker recovery key.
Authentication
The connector uses the OAuth 2.0 client credentials flow against https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token and requests the https://graph.microsoft.com/.default scope. The Tenant ID, Client ID, and Client Secret obtained in Prerequisites are passed as:
tenant_id: substituted into the OAuth2 token endpoint URL.client_idandclient_secret: sent in the token request body as form-encoded credentials.
Environment (optional): leave these blank to use the Microsoft global cloud.
| Field | Default | Description |
|---|---|---|
oauth2_endpoint (OAuth2 endpoint) | https://login.microsoftonline.com | Base URL of the token endpoint. The connector adds /{tenant_id}/oauth2/v2.0/token. |
graph_endpoint (Graph API endpoint) | https://graph.microsoft.com/v1.0 | Base URL for Microsoft Graph calls. The (Beta) and (Alpha) actions replace /v1.0 with /beta, so this URL must end in /v1.0 or /beta; otherwise those actions fail. |
Triggers
None. This connector is outbound only.
Actions
Entra group ID from name
Retrieves Microsoft Entra group IDs for a list of display names in a single request via Microsoft Graph's group list API.
Use case: convert human-readable group names to their IDs before calling other actions (e.g. Retrieve Entra group members). Also useful to validate that a group exists in the tenant.
Permissions required: GroupMember.Read.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| group_names | String[] | Yes | - | Up to 10 Entra group display names to look up |
Example Input
{
"group_names": ["IT Administrators", "Sales Team", "Marketing Department"]
}
Output
| Field Name | Type | Description |
|---|---|---|
results |
Object[] | One object per matched group. See Result object fields below. |
Result object fields
| Field Name | Type | Description |
|---|---|---|
display_name |
String | Group display name as stored in Entra |
group_id |
String | Entra group object ID (GUID) |
Example Output
{
"results": [
{
"display_name": "IT Administrators",
"group_id": "12345678-1234-1234-1234-123456789012"
}
]
}
Error Handling
The job fails without retry on 400 / 401 / 403 responses (invalid input or credential / permission issue). On 429 (rate limited) or 503 (service unavailable), the connector waits for the time in Retry-After and retries the request.
Operational notes
- Call at the start of runbooks that operate on groups by name. Pass the returned IDs to Retrieve Entra group members or other group actions.
- Group display names are case-sensitive and must match the value stored in Entra (e.g.
it administratorswill not match a group namedIT Administrators). - The connector deduplicates
group_namesbefore calling Microsoft Graph, so input length minus distinct-output length is the count of misses. - Groups not found in Entra are omitted from the results.
Retrieve Entra group members
Retrieves all members of a Microsoft Entra ID group with pagination support via Microsoft Graph's group members API. Members may be users, devices, or other directory objects.
Use case: audit group memberships, synchronize group data with other systems, or process group members in workflows that need user or device information. Pair with Entra group ID from name to resolve the group_id from a friendly name first.
Permissions required: GroupMember.Read.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| group_id | String | Yes | - | Entra group ID (obtained from the Entra group ID from name action) |
| page_size | Integer | No | 100 | Number of members per page (1-999) |
Example Input
{
"group_id": "12345678-1234-1234-1234-123456789012",
"page_size": 50
}
Output
| Field Name | Type | Description |
|---|---|---|
odata_count |
Integer | Total members in the group. Microsoft Graph only populates this when the request includes $count=true and ConsistencyLevel: eventual; expect null otherwise. |
has_next_page |
Boolean | true while more pages remain. Re-invoke the action until false. |
members |
Object[] | One object per member. See Member object fields below. |
Member object fields
| Field Name | Type | Description |
|---|---|---|
member_id |
String | Entra object ID of the member (user, device, etc.) |
device_id |
String | Entra device ID (the AAD-side deviceId). Populated only when the member is a device. Distinct from the Intune managed-device ID returned by Managed devices from Intune. |
odata_type |
String | Microsoft Graph type of the member (e.g. #microsoft.graph.user, #microsoft.graph.device) |
Example Output
{
"members": [
{
"member_id": "87654321-4321-4321-4321-210987654321",
"device_id": null,
"odata_type": "#microsoft.graph.user"
},
{
"member_id": "98765432-5432-5432-5432-321098765432",
"device_id": "device123",
"odata_type": "#microsoft.graph.device"
}
]
}
Error Handling
The job fails without retry on 400 / 401 / 403 responses (invalid input or credential / permission issue), or when a member's required fields are missing. On 429 (rate limited) or 503 (service unavailable), the connector waits for the time in Retry-After and retries the request.
Limitations
- Microsoft Graph v1.0 does not return service principals as members (known issue). If your runbook depends on service principal membership, follow the workaround in the linked doc.
Operational notes
- Pair with Entra group ID from name to resolve
group_idfrom a friendly group name. - Paginate to completion: call until
has_next_pageisfalse. - Branch on
odata_typeto detect member kind, not ondevice_idpresence (#microsoft.graph.uservs.#microsoft.graph.device). - For large groups, raise
page_sizetoward the max (999) to reduce round-trips.
Managed devices from Intune
Retrieves devices managed through Microsoft Intune with pagination support via Microsoft Graph's managed devices API. Returns device identity, hardware, operating system, user association, compliance, and enrollment details.
Use case: populate or refresh the list of Intune-managed devices in Xurrent's CMDB for inventory, compliance monitoring, user-device mapping, or security audits. For incremental updates, set Last sync to fetch only devices whose lastSyncDateTime is at or after the given time.
Permissions required: DeviceManagementManagedDevices.Read.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| last_sync | DateTime | No | - | Only fetch devices whose lastSyncDateTime is at or after this time. Leave blank to fetch all devices |
| page_size | Integer | No | 100 | Number of devices per page (1-999) |
Example Input
{
"last_sync": "2024-01-01T00:00:00Z",
"page_size": 50
}
Output
| Field Name | Type | Description |
|---|---|---|
odata_count |
Integer | Total devices matching the query. Microsoft Graph only populates this when the request includes $count=true; expect null otherwise. |
has_next_page |
Boolean | true while more pages remain. Re-invoke the action until false. |
devices |
Object[] | One object per device. See Device object fields below. |
Device object fields
| Field Name | Type | Description |
|---|---|---|
device_id |
String | Intune device ID |
manufacturer |
String | Hardware manufacturer |
model |
String | Hardware model |
device_name |
String | Device display name |
serial_number |
String | Device serial number |
last_sync_date_time |
DateTime | Last time the device checked in with Intune |
operating_system |
String | OS family (e.g. Windows, iOS, macOS) |
os_version |
String | OS version string |
user_id |
String | Entra object ID of the primary user |
email_address |
String | Primary user's email (stored as secret) |
physical_memory_in_bytes |
Integer | Installed RAM in bytes |
azure_ad_registered |
Boolean | Whether the device is registered with Entra |
azure_ad_device_id |
String | Entra device ID |
jail_broken |
String | Jailbreak/root status. Free-form string (typically Unknown, True, False, Pending, or empty) |
enrolled_date_time |
DateTime | When the device was enrolled in Intune |
device_enrollment_type |
String | Enrollment type. See deviceEnrollmentType enum for all 13 values |
managed_device_owner_type |
String | One of: unknown, company, personal |
is_encrypted |
Boolean | Whether the device is encrypted |
compliance_state |
String | One of: unknown, compliant, noncompliant, conflict, error, inGracePeriod, configManager |
user_principal_name |
String | Primary user's UPN (stored as secret) |
phone_number |
String | Device phone number |
wi_fi_mac_address |
String | Wi-Fi MAC address |
ethernet_mac_address |
String | Ethernet MAC address |
total_storage_space_in_bytes |
Integer | Total storage in bytes |
free_storage_space_in_bytes |
Integer | Free storage in bytes |
Example Output
{
"has_next_page": true,
"devices": [
{
"device_id": "12345678-1234-1234-1234-123456789012",
"manufacturer": "Microsoft",
"model": "Surface Pro 8",
"device_name": "SURFACE-JOHN-01",
"serial_number": "X123456789",
"last_sync_date_time": "2024-01-15T10:30:00Z",
"operating_system": "Windows",
"os_version": "10.0.19045.3803",
"user_id": "98765432-9876-9876-9876-987654321098",
"email_address": "[REDACTED]",
"physical_memory_in_bytes": 17179869184,
"azure_ad_registered": true,
"azure_ad_device_id": "87654321-8765-8765-8765-876543210987",
"jail_broken": "Unknown",
"enrolled_date_time": "2023-01-01T00:00:00Z",
"device_enrollment_type": "windowsAzureADJoin",
"managed_device_owner_type": "company",
"is_encrypted": true,
"compliance_state": "compliant",
"user_principal_name": "[REDACTED]",
"phone_number": "+********4703",
"wi_fi_mac_address": "00:1F:5A:9D:44:21",
"ethernet_mac_address": "A4:9C:3F:12:6B:8E",
"total_storage_space_in_bytes": 256000000000,
"free_storage_space_in_bytes": 68021125120
}
]
}
Error Handling
The job fails without retry on 400 / 401 / 403 responses (invalid input or credential / permission issue). On 429 (rate limited) or 503 (service unavailable), the connector waits for the time in Retry-After and retries the request.
Operational notes
- Incremental syncs: Set
last_syncto the start time (UTC) of your previous run. Storing the maxlast_sync_date_timeobserved in this run can miss devices whose timestamp advances between page fetches. - Filter downstream: Branch on
compliance_statefor security audits, or onmanaged_device_owner_typefor BYOD vs. corporate fleets. - Paginate to completion: call until
has_next_pageisfalse. - Treat user fields as PII:
email_addressanduser_principal_nameare secret strings. Don't log them in plain text.
Sync Intune device
Asks one Intune managed device to check in with Intune now, through Microsoft Graph's syncDevice API. The device then gets its latest policies, apps and actions without waiting for its next scheduled check-in.
Use case: apply a policy or app assignment to a device right after a Xurrent request changed it, or refresh a device before you read its compliance state with Managed devices from Intune.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to sync |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- Microsoft accepts the request before the device acts on it. The device syncs when it is next online.
Restart Intune device
Restarts one Intune managed device through Microsoft Graph's rebootNow API.
Use case: finish an update or a configuration change that needs a restart, or restart a device that a user reported as stuck.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to restart |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The device can restart without a warning to the signed-in user, so work that is not saved can be lost.
- The restart usually starts within 5 minutes. It waits while the device is offline.
- Microsoft supports this action on Windows, macOS, supervised iOS/iPadOS, and dedicated or fully managed Android devices, among others.
Remote lock Intune device
Locks the screen of one Intune managed device through Microsoft Graph's remoteLock API. The user must enter the device passcode to unlock it.
Use case: secure a device that was reported lost or stolen while you decide whether to wipe it with Wipe Intune device.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to lock |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- Not supported on Windows. Microsoft supports this action on iOS/iPadOS, macOS and corporate-owned Android devices, among others.
- The lock protects the device only when a passcode or PIN is already set.
Reset Intune device passcode
Resets the passcode of one Intune managed Android device, or of its work profile, through Microsoft Graph's resetPasscode API. Intune shows the new passcode in the Microsoft Intune admin center for seven days.
Use case: help a user who forgot the passcode of a company phone or of their work profile.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID whose passcode reset was requested |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- Android Enterprise and Android Open Source Project devices only.
- The new passcode is not part of the output. Read it on the device page in the Microsoft Intune admin center.
- The reset fails when no passcode policy is assigned to the device.
Retire Intune device
Removes the company apps, data and settings that Intune put on one managed device, and removes the device from Intune management, through Microsoft Graph's retire API. The personal data of the user stays on the device. The device is retired the next time it checks in with Intune.
Use case: offboard a personal (BYOD) device when its owner leaves, without erasing the owner's own data.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to retire |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The action cannot be undone. The device must be enrolled again before Intune can manage it.
- A tenant can submit up to 1,000 Retire actions per day.
- On a Microsoft Entra joined Windows device protected by BitLocker, retiring suspends BitLocker. Read the BitLocker recovery key and the local administrator password first if you still need them.
Wipe Intune device
Resets one Intune managed device to its factory settings through Microsoft Graph's wipe API. Unless you set one of the keep options, all data on the device is erased.
Use case: erase a company device that was lost or stolen, or prepare a device for a new user.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
| keep_enrollment_data | Boolean | No | - | Windows: keep the provisioning data of the device through the wipe |
| keep_user_data | Boolean | No | - | Windows: keep the enrollment state, the user accounts and their data. This is the admin center option Wipe device, but keep enrollment state and associated user account |
| mac_os_unlock_code | Secret String | No | - | macOS: the six-digit recovery PIN that Macs without a T2 security chip need to reinstall macOS. Record it, because it is not shown after the wipe |
| persist_esim_data_plan | Boolean | No | - | Keep the eSIM cellular data plan on the device |
Options that are left empty are not sent, so Microsoft uses its own default for them.
Example Input
{
"device_id": "12345678-1234-1234-1234-123456789012",
"keep_enrollment_data": false,
"keep_user_data": false
}
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to wipe |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The action cannot be undone. Put an approval step in front of it.
- A tenant can submit up to 500 Wipe actions per day.
- Microsoft accepts the request before the device acts on it. The device is wiped when it is next online.
- This action does not send the macOS obliteration behavior (
obliterationBehavior), so Macs get Microsoft's default. The beta wipe call can set it: send that call as a raw Microsoft Graph request.
Fresh Start Intune device
Reinstalls the latest version of Windows on one Intune managed device and removes the apps that the manufacturer installed, through Microsoft Graph's cleanWindowsDevice API. This is the Fresh Start action of the Microsoft Intune admin center.
Use case: remove the preinstalled apps from a new PC, or clean up a Windows device before it goes to a new user.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
| keep_user_data | Boolean | No | false | Keep the device joined to Microsoft Entra ID and keep the user's home folder. When false, the device goes back to the end of Windows setup, and a personal device is removed from Microsoft Entra ID and from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012", "keep_user_data": true }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to start fresh |
keep_user_data |
Boolean | Whether the request asked Intune to keep the user data. false when the input was not set |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012", "keep_user_data": true }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- Windows devices only.
- The action cannot be undone. Apps that were removed are not put back.
Run Defender scan on Intune device
Starts a Microsoft Defender Antivirus scan on one Intune managed Windows device through Microsoft Graph's windowsDefenderScan API.
Use case: scan a device after a security alert, before you decide whether to isolate or wipe it.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
| quick_scan | Boolean | No | true | true runs a quick scan, false runs a full scan |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012", "quick_scan": false }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to scan |
quick_scan |
Boolean | true for a quick scan, false for a full scan |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012", "quick_scan": false }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- Windows devices only.
- A quick scan checks the places where threats usually appear, such as memory, startup folders and running processes. A full scan checks all files and running processes.
Rename Intune device (Beta)
Renames one Intune managed device through Microsoft Graph's setDeviceName API. Microsoft offers this call only in its beta API, which it can change.
Use case: apply your naming standard to a device, for example after it was handed to a new user.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
| device_name | String | Yes | - | The new name of the device |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012", "device_name": "CONTOSO-LT-0042" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to change its name |
device_name |
String | The new name, as sent to Microsoft |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012", "device_name": "CONTOSO-LT-0042" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The call is part of the Microsoft Graph beta API. Microsoft can change it, and the action can then fail.
- Microsoft accepts the request before the device acts on it. The device takes its new name when it is next online.
Change primary user (Alpha)
Sets the primary user of one Intune managed device. Microsoft does not document this call and can change or remove it without notice. The managedDevice resource lists the primary users of a device as its users relationship, but Microsoft documents no call that changes them. This action sends the Microsoft Graph beta request POST /deviceManagement/managedDevices/{device_id}/users/$ref with the new user.
Use case: move a device to its new user after a hand-over, so Intune reports and user-based assignments follow the right person.
Permissions required: DeviceManagementManagedDevices.ReadWrite.All. This is our best guess, because Microsoft does not document which permission this call needs.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
| user_id | String | Yes | - | Object ID (GUID) of the Microsoft Entra user who becomes the primary user |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012", "user_id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID |
user_id |
String | The object ID of the new primary user |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012", "user_id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID or the user ID is not a GUID. A 403 names DeviceManagementManagedDevices.ReadWrite.All and says that it is our best guess, because Microsoft does not document this call. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- Microsoft does not document this call. It can change or stop working at any time without notice, and the action then fails.
- The call is part of the Microsoft Graph beta API.
Assign Autopilot device to user
Assigns a user to one Windows Autopilot device through Microsoft Graph's updateDeviceProperties API. For supported manufacturers, Windows setup then fills in the user principal name on the Microsoft Entra sign-in page and greets the user with the name you give. The assignment does not change which policies and apps the device gets.
Use case: prepare a new laptop for a named user before it ships, from the Xurrent request that ordered it.
Permissions required: DeviceManagementServiceConfig.ReadWrite.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| autopilot_device_id | String | Yes | - | ID (GUID) of the Windows Autopilot device. This is not the Intune device ID |
| user_principal_name | String | Yes | - | User principal name of the user, for example adele.vance@contoso.com |
| addressable_user_name | String | No | - | The greeting name Windows shows to the user during setup |
Example Input
{
"autopilot_device_id": "4f3c2a1b-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"user_principal_name": "adele.vance@contoso.com",
"addressable_user_name": "Adele Vance"
}
Output
| Field Name | Type | Description |
|---|---|---|
autopilot_device_id |
String | The Windows Autopilot device ID |
user_principal_name |
String | The user principal name that was assigned |
Example Output
{ "autopilot_device_id": "4f3c2a1b-5d6e-4f70-8a9b-0c1d2e3f4a5b", "user_principal_name": "adele.vance@contoso.com" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Autopilot device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The device must already be registered with Windows Autopilot, and the user must have an Intune license.
- The assignment does not work when the tenant signs in through Active Directory Federation Services (ADFS).
Approve Intune EPM elevation request (Beta)
Approves one Endpoint Privilege Management (EPM) elevation request through Microsoft Graph's approve API. Intune then tells the user that they can run the file with administrator rights. Microsoft offers this call only in its beta API, which it can change.
Use case: approve a user's request to run an installer as administrator once the approval in a Xurrent request has passed.
Permissions required: DeviceManagementConfiguration.ReadWrite.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| elevation_request_id | String | Yes | - | ID (GUID) of the elevation request |
| reviewer_justification | String | No | - | Why the request is approved. Stored with the request |
Example Input
{ "elevation_request_id": "3df245af-45af-3df2-af45-f23daf45f23d", "reviewer_justification": "Approved in request 70123" }
Output
| Field Name | Type | Description |
|---|---|---|
elevation_request_id |
String | The elevation request ID |
status |
String | One of none, pending, approved, denied, expired, revoked, completed |
requested_by_user_id |
String | Object ID of the user who asked for the elevation |
requested_by_user_principal_name |
String | User principal name of the user who asked for the elevation |
requested_on_device_id |
String | Intune device ID of the device the request came from |
device_name |
String | Name of the device the request came from |
request_justification |
String | The reason the user gave |
request_created_date_time |
DateTime | When the user made the request |
request_last_modified_date_time |
DateTime | When the request last changed |
request_expiry_date_time |
DateTime | When the request expires |
review_completed_by_user_id |
String | Object ID of the administrator who reviewed the request |
review_completed_by_user_principal_name |
String | User principal name of the administrator who reviewed the request |
review_completed_date_time |
DateTime | When the review was done |
reviewer_justification |
String | The reason the reviewer gave |
application_detail |
Object | The file the user wants to run. See Application detail fields below |
Application detail fields
| Field Name | Type | Description |
|---|---|---|
file_name |
String | File name |
file_path |
String | Folder of the file on the device |
file_hash |
String | Hash of the file |
file_description |
String | Description stored in the file |
publisher_name |
String | Publisher of the file |
publisher_cert |
String | Certificate the file is signed with |
product_name |
String | Product name stored in the file |
product_internal_name |
String | Internal product name stored in the file |
product_version |
String | Product version stored in the file |
Example Output
{
"elevation_request_id": "3df245af-45af-3df2-af45-f23daf45f23d",
"status": "approved",
"requested_by_user_id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd",
"requested_by_user_principal_name": "adele.vance@contoso.com",
"requested_on_device_id": "12345678-1234-1234-1234-123456789012",
"device_name": "CONTOSO-LT-0042",
"request_justification": "Need to install the VPN client",
"request_created_date_time": "2026-11-10T08:15:00Z",
"request_last_modified_date_time": "2026-11-10T08:30:00Z",
"request_expiry_date_time": "2026-11-11T08:15:00Z",
"review_completed_by_user_id": "5b2a1c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"review_completed_by_user_principal_name": "it.admin@contoso.com",
"review_completed_date_time": "2026-11-10T08:30:00Z",
"reviewer_justification": "Approved in request 70123",
"application_detail": {
"file_name": "vpnclient.exe",
"file_path": "C:\\Users\\adele\\Downloads",
"file_hash": "4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b",
"file_description": "VPN client installer",
"publisher_name": "Contoso Ltd",
"publisher_cert": "CN=Contoso Ltd",
"product_name": "Contoso VPN",
"product_internal_name": "vpnclient",
"product_version": "5.2.1"
}
}
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the elevation request ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The call is part of the Microsoft Graph beta API. Microsoft can change it, and the action can then fail.
- Elevation requests exist only when an EPM elevation rule asks for support approval.
Deny or revoke Intune EPM elevation (Beta)
Denies a pending Endpoint Privilege Management (EPM) elevation request, or revokes one that was approved, through Microsoft Graph's deny API or revoke API. Microsoft offers these calls only in its beta API, which it can change.
Use case: deny a user's request to run a file as administrator when the approval in a Xurrent request is rejected, or revoke an approval that was given by mistake.
Permissions required: DeviceManagementConfiguration.ReadWrite.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| elevation_request_id | String | Yes | - | ID (GUID) of the elevation request |
| decision | String | Yes | - | deny for a pending request, revoke for an approved request |
| reviewer_justification | String | No | - | Why the request is denied or revoked. Stored with the request |
Example Input
{ "elevation_request_id": "3df245af-45af-3df2-af45-f23daf45f23d", "decision": "deny", "reviewer_justification": "Not an approved application" }
Output
| Field Name | Type | Description |
|---|---|---|
elevation_request_id |
String | The elevation request ID |
status |
String | One of none, pending, approved, denied, expired, revoked, completed |
requested_by_user_id |
String | Object ID of the user who asked for the elevation |
requested_by_user_principal_name |
String | User principal name of the user who asked for the elevation |
requested_on_device_id |
String | Intune device ID of the device the request came from |
device_name |
String | Name of the device the request came from |
request_justification |
String | The reason the user gave |
request_created_date_time |
DateTime | When the user made the request |
request_last_modified_date_time |
DateTime | When the request last changed |
request_expiry_date_time |
DateTime | When the request expires |
review_completed_by_user_id |
String | Object ID of the administrator who reviewed the request |
review_completed_by_user_principal_name |
String | User principal name of the administrator who reviewed the request |
review_completed_date_time |
DateTime | When the review was done |
reviewer_justification |
String | The reason the reviewer gave |
application_detail |
Object | The file the user wants to run. See Application detail fields below |
Application detail fields
| Field Name | Type | Description |
|---|---|---|
file_name |
String | File name |
file_path |
String | Folder of the file on the device |
file_hash |
String | Hash of the file |
file_description |
String | Description stored in the file |
publisher_name |
String | Publisher of the file |
publisher_cert |
String | Certificate the file is signed with |
product_name |
String | Product name stored in the file |
product_internal_name |
String | Internal product name stored in the file |
product_version |
String | Product version stored in the file |
Example Output
{
"elevation_request_id": "3df245af-45af-3df2-af45-f23daf45f23d",
"status": "denied",
"requested_by_user_id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd",
"requested_by_user_principal_name": "adele.vance@contoso.com",
"requested_on_device_id": "12345678-1234-1234-1234-123456789012",
"device_name": "CONTOSO-LT-0042",
"request_justification": "Need to install a game",
"request_created_date_time": "2026-11-10T08:15:00Z",
"request_last_modified_date_time": "2026-11-10T08:30:00Z",
"request_expiry_date_time": "2026-11-11T08:15:00Z",
"review_completed_by_user_id": "5b2a1c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"review_completed_by_user_principal_name": "it.admin@contoso.com",
"review_completed_date_time": "2026-11-10T08:30:00Z",
"reviewer_justification": "Not an approved application",
"application_detail": {
"file_name": "gamesetup.exe",
"file_path": "C:\\Users\\adele\\Downloads",
"file_hash": "9a8b7c6d5e4f30211a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f7081",
"file_description": "Game setup",
"publisher_name": "Fabrikam Games",
"publisher_cert": "CN=Fabrikam Games",
"product_name": "Fabrikam Racer",
"product_internal_name": "gamesetup",
"product_version": "1.0.4"
}
}
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the elevation request ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The calls are part of the Microsoft Graph beta API. Microsoft can change them, and the action can then fail.
Rotate Intune local admin password (Beta)
Starts a manual rotation of the local administrator password on one Intune managed device through Microsoft Graph's rotateLocalAdminPassword API. Microsoft offers this call only in its beta API, which it can change.
Use case: change the local administrator password after a technician has used it, for example after Get Intune device local admin password.
Permissions required: DeviceManagementManagedDevices.PrivilegedOperations.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID that was asked to rotate its password |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The call is part of the Microsoft Graph beta API. Microsoft can change it, and the action can then fail.
- Windows devices only. The device needs a Windows LAPS policy from Intune.
- Microsoft accepts the request before the device acts on it. The device makes the new password when it is next online.
Get Intune device local admin password
Reads the local administrator password of one device from Microsoft Entra ID through Microsoft Graph's get deviceLocalCredentialInfo API. The password is returned as a secret string.
Use case: give a technician the local administrator password of a device for a support session, then change it with Rotate Intune local admin password (Beta).
Permissions required: DeviceLocalCredential.Read.All. DeviceLocalCredential.ReadBasic.All is not enough to read the password.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| azure_ad_device_id | String | Yes | - | Entra device ID (GUID): the azure_ad_device_id returned by Managed devices from Intune. This is not the Intune device_id |
Example Input
{ "azure_ad_device_id": "87654321-8765-8765-8765-876543210987" }
Output
| Field Name | Type | Description |
|---|---|---|
azure_ad_device_id |
String | The Entra device ID |
device_name |
String | Name of the device |
account_name |
String | Name of the local administrator account |
account_sid |
String | Security identifier of the local administrator account |
password |
Secret String | The password of the local administrator account |
backup_date_time |
DateTime | When this password was backed up to Microsoft Entra ID |
last_backup_date_time |
DateTime | When the device last backed up a password |
refresh_date_time |
DateTime | When the device will next change the password |
Example Output
{
"azure_ad_device_id": "87654321-8765-8765-8765-876543210987",
"device_name": "CONTOSO-LT-0042",
"account_name": "ContosoLocalAdmin",
"account_sid": "S-1-5-21-2318549658-1590267884-3984890135-1965",
"password": "<secret>",
"backup_date_time": "2026-11-01T13:45:30Z",
"last_backup_date_time": "2026-11-01T13:45:30Z",
"refresh_date_time": "2026-12-01T13:45:30Z"
}
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, when Microsoft returns no password for the device, and when the password has characters that this action cannot decode. It fails before calling Microsoft when the Entra device ID is not a GUID, or is 00000000-0000-0000-0000-000000000000, which means that the device has no Microsoft Entra ID record. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Entra device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The device needs Windows LAPS with its password backed up to Microsoft Entra ID.
- Microsoft keeps earlier passwords too. The action returns the newest one.
Operational notes
- Treat the password as a secret: pass it on only through a secure channel, and do not log it in plain text.
Get BitLocker recovery key
Reads one BitLocker recovery key from Microsoft Entra ID through Microsoft Graph's get bitlockerRecoveryKey API. Give the recovery key ID, or give the Entra device ID to get the newest key of the device's operating system drive, found with the list recoveryKeys API. The key is returned as a secret string, and Microsoft records each read in the Microsoft Entra audit log.
Use case: give a user the recovery key that their locked Windows device asks for, from a Xurrent request that names the device.
Permissions required: BitlockerKey.Read.All. BitlockerKey.ReadBasic.All does not allow reading the key.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| recovery_key_id | String | No | - | ID (GUID) of the recovery key |
| azure_ad_device_id | String | No | - | Entra device ID (GUID): the azure_ad_device_id returned by Managed devices from Intune. This is not the Intune device_id |
Give exactly one of recovery_key_id and azure_ad_device_id.
Example Input
{ "azure_ad_device_id": "1ab40ab2-32a8-4b00-b6b5-ba724e407de9" }
Output
| Field Name | Type | Description |
|---|---|---|
recovery_key_id |
String | ID of the recovery key |
azure_ad_device_id |
String | Entra device ID of the device the key was backed up from |
volume_type |
String | operatingSystemVolume, fixedDataVolume or removableDataVolume. Microsoft sends the type as a number (1, 2, 3) or as a name, and the action always returns the name. Any other value is returned as Microsoft sent it |
created_date_time |
DateTime | When the key was backed up to Microsoft Entra ID |
recovery_key |
Secret String | The BitLocker recovery key |
Example Output
{
"recovery_key_id": "b465e4e8-e4e8-b465-e8e4-65b4e8e465b4",
"azure_ad_device_id": "1ab40ab2-32a8-4b00-b6b5-ba724e407de9",
"volume_type": "operatingSystemVolume",
"created_date_time": "2026-06-15T13:45:30Z",
"recovery_key": "<secret>"
}
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and when Microsoft returns the recovery key without the key. It fails before calling Microsoft when neither or both inputs are given, when an ID is not a GUID, or when the Entra device ID is 00000000-0000-0000-0000-000000000000, which means that the device has no Microsoft Entra ID record. With an Entra device ID, the job fails when the device has no recovery key for its operating system drive. This also happens when the ID is the Intune device ID instead. It fails too when the keys of the device fill more than 10 pages. A 403 gives Microsoft's reason and names the permission the action needs. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- With an Entra device ID, the action returns the newest key of the operating system drive. To read the key of a data drive, give its recovery key ID.
Operational notes
- Treat the key as a secret: pass it on only through a secure channel, and do not log it in plain text.
Delete Intune device record
Removes one device from Intune through Microsoft Graph's delete managedDevice API. Intune also sends the device a Retire command, or a Wipe command for a corporate-owned Android device, so the company data on it is removed too.
Use case: remove a device that is no longer needed, is being repurposed, or is missing, so it no longer shows in Intune and in the next Managed devices from Intune sync.
Permissions required: DeviceManagementManagedDevices.ReadWrite.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
device_id |
String | The Intune device ID |
existed |
Boolean | false when Microsoft Graph found no Intune device record with this ID (HTTP 404), so nothing was deleted |
Example Output
{ "device_id": "12345678-1234-1234-1234-123456789012", "existed": true }
Error Handling
A 404 is not an error: existed is false. The job fails without retry on 400 / 401 / 403 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The action cannot be undone.
existedisfalsewhenever Microsoft Graph finds no Intune record with the ID. That also happens when the ID is the wrong kind of ID, such as the Entra device ID, or when a retried delete follows one that Microsoft had already done.- A tenant can submit up to 1,000 Delete actions per day.
- On a Microsoft Entra joined Windows device protected by BitLocker, deleting suspends BitLocker. Read the BitLocker recovery key and the local administrator password first if you still need them.
Collect Intune device diagnostics (Beta)
Asks one Intune managed Windows device to collect its diagnostic logs and upload them to Intune, through Microsoft Graph's createDeviceLogCollectionRequest API. Microsoft offers this call only in its beta API, which it can change.
Use case: collect the logs of a device for a support request, without asking the user to send them.
Permissions required: DeviceManagementManagedDevices.ReadWrite.All
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| device_id | String | Yes | - | Intune device ID (GUID): the device_id returned by Managed devices from Intune |
Example Input
{ "device_id": "12345678-1234-1234-1234-123456789012" }
Output
| Field Name | Type | Description |
|---|---|---|
request_id |
String | ID of the log collection request |
status |
String | One of pending, completed, failed |
managed_device_id |
String | The Intune device ID |
requested_date_time_utc |
DateTime | When the logs were requested |
received_date_time_utc |
DateTime | When Intune received the logs |
expiration_date_time_utc |
DateTime | When the logs will be deleted |
initiated_by_user_principal_name |
String | Who asked for the logs |
enrolled_by_user |
String | User principal name of the user who enrolled the device |
size_in_kb |
Float | Size of the logs in KB |
error_code |
Integer | Error code of the request, if any |
size |
Float | Size of the logs, as Microsoft returns it. Microsoft gives no unit for it: use size_in_kb for the size in KB |
Example Output
{
"request_id": "9c46a35a-b7cd-42ef-9ce5-9ea1481d40f1_12345678-1234-1234-1234-123456789012_05fb97dc-97dc-05fb-dc97-fb05dc97fb05",
"status": "pending",
"managed_device_id": "12345678-1234-1234-1234-123456789012",
"requested_date_time_utc": "2026-11-10T09:00:00Z",
"received_date_time_utc": null,
"expiration_date_time_utc": "2026-12-10T09:00:00Z",
"initiated_by_user_principal_name": "it.admin@contoso.com",
"enrolled_by_user": "adele.vance@contoso.com",
"size_in_kb": 0,
"error_code": 0,
"size": 0
}
Error Handling
The job fails without retry on 400 / 401 / 403 / 404 responses, and before calling Microsoft when the Intune device ID is not a GUID. A 403 gives Microsoft's reason and names the permission the action needs. A 404 asks you to check that the ID is the Intune device ID. On 429 or 503, the connector waits for the time in Retry-After and retries the request.
Limitations
- The call is part of the Microsoft Graph beta API. Microsoft can change it, and the action can then fail.
- Corporate-owned Windows devices only.
- The logs are collected when the device is next online. Download them from the device in the Microsoft Intune admin center when
statusiscompleted.
Rate Limiting
Microsoft Graph throttles requests per tenant and per app and returns 429 Too Many Requests with a Retry-After header when the threshold is exceeded (reference). The connector retries on 429 and 503 responses.
| HTTP status | Connector behavior |
|---|---|
| 429 Too Many Requests | Wait for the value of the Retry-After header (seconds or HTTP date), then retry. If the header is absent, the connector applies a default backoff. |
| 503 Service Unavailable | Retry with backoff. |
| 401 / 403 | Fail without retry. The message gives Microsoft's reason, such as a wrong credential, a missing permission or license, or a tenant setting. |
| 400 | Fail without retry. Invalid input. |
Notes:
- Microsoft's throttling guidance recommends exponential backoff when
Retry-Afteris absent. - 503 is treated as a transient error; it is not part of Microsoft Graph's documented throttling contract.
Best Practices
- Resolve IDs at runbook start: Call Entra group ID from name to convert friendly group names into IDs. Don't hard-code GUIDs that may change.
- Incremental device syncs: Use
last_syncon Managed devices from Intune with the start time (UTC) of your previous successful run. - Paginate to completion: Retrieve Entra group members and Managed devices from Intune are iterator actions. Call until
has_next_pageisfalse. - Pass the right device ID: The device actions take the Intune
device_idfrom Managed devices from Intune. Get Intune device local admin password and Get BitLocker recovery key take itsazure_ad_device_idinstead. - Approve destructive actions first: Wipe Intune device, Retire Intune device, Fresh Start Intune device and Delete Intune device record cannot be undone. Put an approval step in front of them.
- Save secrets before you retire or delete: Retiring or deleting a Microsoft Entra joined Windows device suspends BitLocker. Read the BitLocker recovery key and the local administrator password first if you still need them.
- Rotate after use: After a technician used the password from Get Intune device local admin password, run Rotate Intune local admin password (Beta).
- Scope permissions minimally: Grant only the permissions that Prerequisites lists for the actions you use. Don't grant broader scopes.
- Protect PII and secrets: Device records include user email and UPN as secret strings, and the local administrator password and the BitLocker recovery key are secret strings too. Don't log them in plain text.
Common Use Cases
- CMDB sync: Managed devices from Intune → upsert into Xurrent's CMDB keyed on
device_id. Uselast_syncfor incremental runs. - Security compliance: Managed devices from Intune → branch on
compliance_state→ route non-compliant devices into remediation workflows. - Group-based access workflows: Entra group ID from name → Retrieve Entra group members → provision or revoke Xurrent access based on membership changes.
- BYOD vs. corporate inventory: Managed devices from Intune → segment by
managed_device_owner_typefor separate reporting pipelines. - Lifecycle management: Managed devices from Intune → filter by
enrolled_date_timeanddevice_enrollment_typeto identify devices due for refresh or compliance review. - Lost or stolen device: Remote lock Intune device → approval → Wipe Intune device, or Retire Intune device for a personal device.
- Device offboarding: Get BitLocker recovery key → Retire Intune device or Wipe Intune device → Delete Intune device record.
- Device hand-over: Fresh Start Intune device → Change primary user (Alpha) → Rename Intune device (Beta).
- Helpdesk recovery: Managed devices from Intune → Get BitLocker recovery key or Get Intune device local admin password with its
azure_ad_device_id→ Rotate Intune local admin password (Beta) after the support session. - Security response: Run Defender scan on Intune device → Collect Intune device diagnostics (Beta) → record the log collection request on the Xurrent request.
- New laptop for a named user: Assign Autopilot device to user from the Xurrent request that ordered the device.
- Elevation approvals: a Xurrent approval → Approve Intune EPM elevation request (Beta), or Deny or revoke Intune EPM elevation (Beta) when the approval is rejected.
- Policy refresh: change a group assignment → Sync Intune device so that the device gets it at once.
References
API Reference
- Microsoft Graph REST API (v1.0)
- Microsoft Graph REST API (beta)
- List groups (Microsoft Graph API)
- List group members (Microsoft Graph API)
- List managedDevices (Microsoft Graph Intune API)
- managedDevice resource type
- windowsAutopilotDeviceIdentity resource type
- privilegeManagementElevationRequest resource type (beta)
- deviceLocalCredentialInfo resource type
- bitlockerRecoveryKey resource type
- deviceLogCollectionResponse resource type (beta)
Concepts
- Intune device actions
- Endpoint Privilege Management
- Windows LAPS
- Advanced query capabilities on directory objects
- Microsoft Graph throttling
- OAuth 2.0 client credentials flow
- Microsoft Graph permissions reference



.webp)




























