Table of Contents

DeviceManagementScripts.ReadWrite.All

Allows the app to read and write Microsoft Intune device compliance scripts, device management scripts, device shell scripts, device custom attribute shell scripts and device health scripts on behalf of the signed in user.

Merill's Note

For an app to access data in Microsoft Graph, the user or administrator must grant it the permissions it needs. This article lists all the Microsoft Graph APIs and your tenant data that can be accessed by the application (vendor/developer) if you consent to the DeviceManagementScripts.ReadWrite.All permission.

If you need to create an audit report of the permissions granted to all the apps in your tenant, you can run the Export-MsIdAppConsentGrantReport command. See How To: Run a quick OAuth app audit of your tenant

Category Application Delegated
Identifier 9255e99d-faf5-445e-bbf7-cb71482737c4 8b9d79d0-ad75-4566-8619-f7500ecfcebe
DisplayText Read and write Microsoft Intune Scripts Read and write Microsoft Intune Scripts
Description Allows the app to read and write Microsoft Intune device compliance scripts, device management scripts, device shell scripts, device custom attribute shell scripts and device health scripts, without a signed-in user. Allows the app to read and write Microsoft Intune device compliance scripts, device management scripts, device shell scripts, device custom attribute shell scripts and device health scripts on behalf of the signed in user.
AdminConsentRequired Yes Yes

Graph Methods

API supports delegated access (access on behalf of a user)
API supports app-only access (access without a user)

Methods

Resources

Granting this permission allows the calling application to access (and/or update) the following information in your tenant.

Graph reference: deviceComplianceScript

Property Type Description
id String Unique Identifier for the device compliance script
publisher String Name of the device compliance script publisher
version String Version of the device compliance script
displayName String Name of the device compliance script
description String Description of the device compliance script
detectionScriptContent Binary The entire content of the detection powershell script
createdDateTime DateTimeOffset The timestamp of when the device compliance script was created. This property is read-only.
lastModifiedDateTime DateTimeOffset The timestamp of when the device compliance script was modified. This property is read-only.
runAsAccount runAsAccountType Indicates the type of execution context. Possible values are: system, user.
enforceSignatureCheck Boolean Indicate whether the script signature needs be checked
runAs32Bit Boolean Indicate whether PowerShell script(s) should run as 32-bit
roleScopeTagIds String collection List of Scope Tag IDs for the device compliance script