Skip to content
Connector

Microsoft Intune (v2)

Manage Intune devices, endpoint security policies and scratch groups

Reads Intune devices and Entra device records, runs device actions, and manages endpoint security policies and SOC Scratch groups over Microsoft Graph.

@ftnt-dspilleMaintainer v2.1.3 Published Nov 28, 2026
Download .tgz · 20 KB

microsoft-intune-v2_2.1.3.tgz

sha256:0ccd8746a65763b18abc50f23e7f4ed3621e8716e32af7dc1e38bf4f040b7cde

Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.

Reads Microsoft Intune managed devices and Entra device records, runs Intune device actions (sync, scan, reboot, retire, wipe, passcode, lost mode, remote lock and account operations), and manages endpoint security policies, SOC Scratch groups and group membership, all through Microsoft Graph with application permissions. Writes to policies and groups are limited to objects whose names start with "SOC Scratch"; anything else is refused before a Graph call. A read-only execute_api_request operation covers other GET paths under /deviceManagement.

Live-tested on FortiSOAR 8.0.1 against a Microsoft 365 lab tenant.

Authentication: a Microsoft Entra app registration with client credentials (tenant ID, client ID and client secret). The app registration needs these Microsoft Graph application permissions: DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All, DeviceManagementManagedDevices.PrivilegedOperations.All, DeviceManagementConfiguration.ReadWrite.All, Group.ReadWrite.All and Directory.Read.All (for the Entra device lookup). Admin consent is required.

Prerequisites: an Intune licence on the tenant, and at least one device that Intune manages. Windows 10/11, iOS, Android and macOS devices enrol in Intune directly. Windows Server cannot enrol; it receives endpoint security policies only through Defender for Endpoint security settings management. That needs the device onboarded to Defender and patched (Windows Server 2022 needs KB5025230 or later), "Use MDE to enforce security configuration settings from Intune" on with the platform ticked and the Configuration Manager switch off in the Defender portal, the Intune connection on, and "Allow Microsoft Defender for Endpoint to enforce Endpoint Security Configurations" on in Intune. Intune remote actions (wipe, restart, sync) are not available on a Defender-managed server. The connector README lists each step.

Live coverage on 2.1.3: 16 operations and 5 playbook branches run live, including the device-present branches against a Windows Server managed by Defender for Endpoint. Intune remote actions (sync, reboot, wipe and the others) need an MDM-enrolled device, so they stay offline-tested only (sanitised mocks and a loopback Graph).

2.1.2 and 2.1.3 fixes: the Block IP firewall rule now sets its action to Block (before, Windows created it as Allow, seen on a device), and adding a device that is already a group member succeeds instead of failing a second run.

Not live-tested (offline only), with the reason:

Operations (reason for all: no enrolled device on the lab tenant; device-level operations need an enrolled device, and the lab's only Windows host is Windows Server, which Intune does not enrol):

  • shutdown_device
  • reboot_device
  • retire_device (destructive)
  • wipe_device (destructive)
  • clean_windows_device (destructive)
  • recover_passcode_of_device
  • reset_passcode_of_device
  • remote_lock_of_device (destructive)
  • request_remote_assistance_of_device
  • disable_lost_mode_of_device
  • locate_device
  • bypass_activation_lock_of_device (destructive)
  • logout_shared_apple_device_active_user
  • delete_user_from_shared_apple_device (destructive)
  • sync_device
  • windows_defender_scan
  • windows_defender_update_signature
  • update_windows_device_account (destructive)
  • get_managed_device_details: the found path is not live; the not-found error path was live-tested.
  • add_device_to_group: needs a device to add; no enrolled device on the lab tenant.
  • remove_device_from_group: needs a device in the group; no enrolled device on the lab tenant.

Playbook branches (the connector's playbooks are in the companion collection):

  • Intune - Inventory check, Devices Present: needs at least one device in the inventory; no enrolled device on the lab tenant.
  • Intune - Device lookup and sync, Sync Requested: needs a found device to sync; no enrolled device on the lab tenant.
  • Harden endpoint on incident, Policy Clean: needs an Entra device in the group and a policy status read; no enrolled device on the lab tenant.
  • Harden endpoint on incident, Policy Reported Problem: needs a non-compliance row for a device; no enrolled device on the lab tenant.
  • Block IP on endpoint firewall, Policy Reported Problem: needs a non-compliance row for a device; no enrolled device on the lab tenant.

Destructive operations (wipe, retire, remote lock and similar) are covered by synthetic labelled mocks only and are never run against a device by the lab suite.

Configuration · 5 fields

  • Server URL resource text required

    The Microsoft Graph base URL. Must be https://graph.microsoft.com.

    Default https://graph.microsoft.com

  • Tenant ID tenant_id text required

    Directory (tenant) ID of the app registration.

  • Client ID client_id text required

    Application (client) ID of the app registration.

  • Client Secret client_secret password required

    Client secret. Re-enter after rotation; the connector re-reads it on the next call.

  • Verify SSL verify_ssl checkbox

    Verify the TLS certificate of Microsoft Graph.

    Default true

Operations · 40

  • Get Managed Devices List
    list_managed_devices

    Retrieves a list of all managed devices from Microsoft Intune.

    No parameters.

    Returns value
  • Get Managed Device Details 1 param
    get_managed_device_details

    Retrieves details for a specific managed device from Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns value
  • Retire Device 1 param
    retire_device

    Retires a specific device from Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Wipe Device 1 param
    wipe_device

    Wipes a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Reset Passcode Device 1 param
    reset_passcode_of_device

    Resets the passcode for a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Remote Lock Device 1 param
    remote_lock_of_device

    Remotely Locks a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Request Remote Assistance for Device 1 param
    request_remote_assistance_of_device

    Requests remote assistance for a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Disable Lost Mode for Device 1 param
    disable_lost_mode_of_device

    Disables the 'lost mode' for a specific device in Microsoft Intune based on the managed device ID that you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Locate a Device 1 param
    locate_device

    Locates a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Bypass Activation Lock for Device 1 param
    bypass_activation_lock_of_device

    Bypasses the activation lock of a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Reboot Device 1 param
    reboot_device

    Reboots a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Shutdown Device 1 param
    shutdown_device

    Shuts down a specific device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Recover Passcode for Device 1 param
    recover_passcode_of_device

    Recovers the passcode for a specific device from Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Clean Windows Device 1 param
    clean_windows_device

    Cleans, i.e., removes any apps that are installed on a device that runs on Windows in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Logout Apple Device for Active User 1 param
    logout_shared_apple_device_active_user

    Logs out a shared Apple device for an active user in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Delete User from Apple Device 1 param
    delete_user_from_shared_apple_device

    Deletes a user from a shared Apple device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Sync Device 1 param
    sync_device

    Syncs a specific device using Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Windows Defender Scan 1 param
    windows_defender_scan

    Scans a device using Windows Defender in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Update Signature for Windows Defender 1 param
    windows_defender_update_signature

    Updates the signature for Windows Defender in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Update Account for Windows Device 1 param
    update_windows_device_account

    Updates an account for a Windows device in Microsoft Intune based on the managed device ID you have specified.

    • Managed Device ID managedDeviceId select required

      Pick a managed device from the list or enter its managed device ID (GUID). The list shows up to 200 devices, one page.

    Returns message
  • Execute API Request 2 params
    execute_api_request

    Send a read-only GET to Microsoft Graph under /deviceManagement, using the connector's app token.

    • Endpoint path endpoint text required

      Path under /v1.0, for example /deviceManagement/managedDevices. Must start with /deviceManagement/.

    • Query parameters query dict

      OData query string parameters, for example $top.

    Returns status_codebody
  • Get Managed Device Options
    get_managed_device_options

    Populates the Managed Device ID dropdowns with up to 200 devices as "name [id]" choices. Hidden from the palette.

    No parameters.

    Returns typeitems
  • List Endpoint Security Policies 1 param
    list_endpoint_security_policies

    Lists Intune settings-catalog (endpoint security) policies, including the tenant defaults. Read-only.

    • Maximum items top integer

      How many items to return (1 to 200).

      Default 50

    Returns valuecount
  • Get Endpoint Security Policy 1 param
    get_endpoint_security_policy

    Gets one endpoint-security policy with its settings and the groups it is assigned to. Read-only.

    • Policy policyId select required

      Pick a scratch or tenant endpoint-security policy from the list, or enter its policy ID (GUID). Writes are refused unless the policy name starts with SOC Scratch.

    Returns idnamesettingsassignedGroupIds
  • List Endpoint Security Templates
    list_endpoint_security_templates

    Lists the Windows 10 endpoint-security templates (Defender Antivirus, Windows Firewall Rules, ASR and others) that a new policy can be created from. Read-only.

    No parameters.

    Returns valuecount
  • Create Endpoint Security Policy 6 params
    create_endpoint_security_policy

    Creates a settings-catalog policy from a template. The name must start with SOC Scratch. settingsJson is the JSON array of Graph settingInstance objects (see the README for the Defender AV and firewall-rule examples).

    • Policy name name text required

      Must start with SOC Scratch.

    • Description description text

      Optional description.

    • Template templateId select required

      Pick the template (from the list) or enter its template ID.

    • Platforms platforms text

      Graph platforms value.

      Default windows10

    • Technologies technologies text

      Graph technologies value, e.g. mdm,microsoftSense.

      Default mdm,microsoftSense

    • Settings (JSON) settingsJson text required

      JSON array of settingInstance objects for the policy.

    Returns policyIdnameactionacceptedassignedGroupIds
  • Delete Endpoint Security Policy 1 param
    delete_endpoint_security_policy

    Deletes an endpoint-security policy. Only a policy whose name starts with SOC Scratch can be deleted.

    • Policy policyId select required

      Pick a scratch or tenant endpoint-security policy from the list, or enter its policy ID (GUID). Writes are refused unless the policy name starts with SOC Scratch.

    Returns policyIdnameactionaccepted
  • Assign Endpoint Security Policy To Group 2 params
    assign_endpoint_security_policy

    Assigns a SOC Scratch policy to a SOC Scratch Entra group. Keeps the policy's other group assignments.

    • Policy policyId select required

      Pick a scratch or tenant endpoint-security policy from the list, or enter its policy ID (GUID). Writes are refused unless the policy name starts with SOC Scratch.

    • Group groupId select required

      Pick a SOC Scratch Entra group, or enter its group ID (GUID). Membership and assignment writes are refused for any other group.

    Returns policyIdnameactionacceptedassignedGroupIds
  • Unassign Endpoint Security Policy From Group 2 params
    unassign_endpoint_security_policy

    Removes a SOC Scratch group from a SOC Scratch policy's assignments. The other assignments are kept.

    • Policy policyId select required

      Pick a scratch or tenant endpoint-security policy from the list, or enter its policy ID (GUID). Writes are refused unless the policy name starts with SOC Scratch.

    • Group groupId select required

      Pick a SOC Scratch Entra group, or enter its group ID (GUID). Membership and assignment writes are refused for any other group.

    Returns policyIdnameactionacceptedassignedGroupIds
  • Get Endpoint Security Policy Status 2 params
    get_endpoint_security_policy_status

    Reads per-device status for a policy from Intune: one row per device with a non-succeeded state, with the status label. An empty result with reported true means no device reports a problem. Read-only.

    • Policy policyId select required

      Pick a scratch or tenant endpoint-security policy from the list, or enter its policy ID (GUID). Writes are refused unless the policy name starts with SOC Scratch.

    • Device name deviceName text

      Optional: only report this device (exact name, case-insensitive).

    Returns policyIdcountrowsreported
  • List SOC Scratch Groups 1 param
    list_scratch_groups

    Lists Entra groups whose name starts with SOC Scratch. Read-only.

    • Maximum items top integer

      How many items to return (1 to 200).

      Default 50

    Returns valuecount
  • Create SOC Scratch Group 1 param
    create_scratch_group

    Creates a security group. The name must start with SOC Scratch.

    • Group name displayName text required

      Must start with SOC Scratch.

    Returns iddisplayName
  • List Group Members 1 param
    list_group_members

    Lists the members (devices, users, groups) of an Entra group. Read-only.

    • Group groupId select required

      Pick a SOC Scratch Entra group, or enter its group ID (GUID). Membership and assignment writes are refused for any other group.

    Returns valuecount
  • Add Device To SOC Scratch Group 2 params
    add_device_to_group

    Adds an Entra device to a SOC Scratch group. A policy assigned to the group then reaches the device. Refused for any other group.

    • Group groupId select required

      Pick a SOC Scratch Entra group, or enter its group ID (GUID). Membership and assignment writes are refused for any other group.

    • Device deviceId select required

      Pick an Entra device from the list, or enter its device object ID (GUID).

    Returns groupIddeviceIdactionacceptedalreadyMember
  • Remove Device From SOC Scratch Group 2 params
    remove_device_from_group

    Removes an Entra device from a SOC Scratch group. Refused for any other group.

    • Group groupId select required

      Pick a SOC Scratch Entra group, or enter its group ID (GUID). Membership and assignment writes are refused for any other group.

    • Device deviceId select required

      Pick an Entra device from the list, or enter its device object ID (GUID).

    Returns groupIddeviceIdactionacceptedalreadyMember
  • Find Entra Device By Name 1 param
    resolve_entra_device

    Looks up an Entra device by its exact display name. Returns found false (not an error) when no device has that name. Read-only.

    • Device name deviceName text required

      Exact Entra display name of the device.

    Returns founddeviceIddisplayNameoperatingSystem
  • Get Endpoint Security Policy Options
    get_endpoint_security_policy_options

    Dropdown source: policy names with IDs.

    No parameters.

  • Get Endpoint Security Template Options
    get_endpoint_security_template_options

    Dropdown source: Windows 10 template names with IDs.

    No parameters.

  • Get SOC Scratch Group Options
    get_scratch_group_options

    Dropdown source: SOC Scratch group names with IDs.

    No parameters.

  • Get Entra Device Options
    get_entra_device_options

    Dropdown source: Entra device names with object IDs (up to 200).

    No parameters.

Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000