Edit

Share via


deviceManagementScriptAssignment resource type

Namespace: microsoft.graph

Important: APIs under the /beta version in Microsoft Graph are subject to change which could break your applications. While Intune /beta APIs are supported by Microsoft, you should use these at your own discretion. In general, /beta APIs are not recommended for use in production applications. To determine whether an API is available in v1.0, use the Version selector

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Contains properties used to assign a device management script to a group.

Methods

Method Return Type Description
List deviceManagementScriptAssignments deviceManagementScriptAssignment collection List properties and relationships of the deviceManagementScriptAssignment objects.
Get deviceManagementScriptAssignment deviceManagementScriptAssignment Read properties and relationships of the deviceManagementScriptAssignment object.
Create deviceManagementScriptAssignment deviceManagementScriptAssignment Create a new deviceManagementScriptAssignment object.
Delete deviceManagementScriptAssignment None Deletes a deviceManagementScriptAssignment.
Update deviceManagementScriptAssignment deviceManagementScriptAssignment Update the properties of a deviceManagementScriptAssignment object.

Properties

Property Type Description
id String Key of the device management script group assignment entity. This property is read-only.
target deviceAndAppManagementAssignmentTarget The Id of the Azure Active Directory group we are targeting the script to.

Relationships

None

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.deviceManagementScriptAssignment",
  "id": "String (identifier)",
  "target": {
    "@odata.type": "microsoft.graph.scopeTagGroupAssignmentTarget",
    "deviceAndAppManagementAssignmentFilterId": "String",
    "deviceAndAppManagementAssignmentFilterType": "String",
    "targetType": "String",
    "entraObjectId": "String"
  }
}