CIPP icon

CIPP

Interact with CIPP API

Actions129

Overview

This node operation assigns an Autopilot device in Microsoft Intune to a specified user within a tenant. It is useful for IT administrators managing device provisioning and user assignments in an enterprise environment using Microsoft Intune's Autopilot service. For example, it can automate the process of linking a new device's serial number to a user account for streamlined device setup and management.

Use Case Examples

  1. Assign a new Autopilot device to a user by providing the device identifier, serial number, and user principal name within the tenant's domain.
  2. Automate bulk device assignments by batching multiple device-user assignments with controlled request intervals.

Properties

Name Meaning
Tenant Filter Specifies the default .onmicrosoft.com tenant domain name to scope the operation.
Device The unique identifier of the device to be assigned.
Serial Number The serial number of the device to be assigned.
User The user principal name (UPN) to whom the device will be assigned.
Request Options Settings to control request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • assignedDeviceId - Identifier of the assigned Autopilot device.
  • status - Status of the assignment operation.
  • message - Additional information or error messages related to the assignment.

Dependencies

  • Requires Microsoft Intune API access with appropriate authentication credentials (e.g., OAuth2 token).

Troubleshooting

  • Ensure the tenant filter matches the correct .onmicrosoft.com domain to avoid authorization errors.
  • Verify device identifier and serial number are correct and exist in the Intune environment.
  • Check user principal name is valid and has permissions to be assigned devices.
  • If SSL errors occur, consider enabling 'Ignore SSL Issues' option or verify SSL certificates.
  • Proxy settings must be correctly configured if used, including authentication if required.
  • Timeouts can occur if the server is slow; adjust the timeout setting accordingly.

Links

Discussion