assign action

Note: Using the Microsoft Graph APIs to configure Intune controls and policies still requires that the Intune service is correctly licensed by the customer.

Not yet documented


One of the following scopes is required to execute this API:


HTTP Request

POST /deviceManagement/deviceManagementScripts/{deviceManagementScriptId}/assign

Request headers

Header Value
Authorization Bearer <token> Required.
Accept application/json

Request body

In the request body, supply JSON representation of the parameters. The following table shows the parameters that can be used with this action.

Property Type Description
deviceManagementScriptGroupAssignments deviceManagementScriptGroupAssignment collection Not yet documented


If successful, this action returns a 204 No Content response code.



Here is an example of the request.


Content-type: application/json
Content-length: 251

  "deviceManagementScriptGroupAssignments": [
      "@odata.type": "#microsoft.graph.deviceManagementScriptGroupAssignment",
      "id": "ecd2357d-357d-ecd2-7d35-d2ec7d35d2ec",
      "targetGroupId": "Target Group Id value"


Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 204 No Content