deviceCustomAttributeShellScript resource type

Namespace: microsoft.graph

Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.

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

Represents a custom attribute script for macOS.

Methods

Method Return Type Description
List deviceCustomAttributeShellScripts deviceCustomAttributeShellScript collection List properties and relationships of the deviceCustomAttributeShellScript objects.
Get deviceCustomAttributeShellScript deviceCustomAttributeShellScript Read properties and relationships of the deviceCustomAttributeShellScript object.
Create deviceCustomAttributeShellScript deviceCustomAttributeShellScript Create a new deviceCustomAttributeShellScript object.
Delete deviceCustomAttributeShellScript None Deletes a deviceCustomAttributeShellScript.
Update deviceCustomAttributeShellScript deviceCustomAttributeShellScript Update the properties of a deviceCustomAttributeShellScript object.
assign action None

Properties

Property Type Description
id String Unique Identifier for the custom attribute entity.
customAttributeName String The name of the custom attribute.
customAttributeType deviceCustomAttributeValueType The expected type of the custom attribute's value. Possible values are: integer, string, dateTime.
displayName String Name of the device management script.
description String Optional description for the device management script.
scriptContent Binary The script content.
createdDateTime DateTimeOffset The date and time the device management script was created. This property is read-only.
lastModifiedDateTime DateTimeOffset The date and time the device management script was last modified. This property is read-only.
runAsAccount runAsAccountType Indicates the type of execution context. Possible values are: system, user.
fileName String Script file name.
roleScopeTagIds String collection List of Scope Tag IDs for this PowerShellScript instance.

Relationships

Relationship Type Description
groupAssignments deviceManagementScriptGroupAssignment collection The list of group assignments for the device management script.
assignments deviceManagementScriptAssignment collection The list of group assignments for the device management script.
runSummary deviceManagementScriptRunSummary Run summary for device management script.
deviceRunStates deviceManagementScriptDeviceState collection List of run states for this script across all devices.
userRunStates deviceManagementScriptUserState collection List of run states for this script across all users.

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.deviceCustomAttributeShellScript",
  "id": "String (identifier)",
  "customAttributeName": "String",
  "customAttributeType": "String",
  "displayName": "String",
  "description": "String",
  "scriptContent": "binary",
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "runAsAccount": "String",
  "fileName": "String",
  "roleScopeTagIds": [
    "String"
  ]
}