Skip to content

Commit

Permalink
Merge branch 'Dev' into compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Aug 21, 2024
2 parents 0712b6d + c24165e commit c0a9552
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
FIXES [#4963](https://github.com/microsoft/Microsoft365DSC/issues/4963)
* IntuneDeviceCompliancePolicyWindows10
* Fix extraction of property `TpmRequired`
* IntuneDeviceConfigurationCustomPolicyWindows10
* Change app and delegated permissions for reading to
DeviceManagementConfiguration.ReadWrite.All to cope with
getOmaSettingPlainTextValue which is only working if RW is granted
FIXES [#4412](https://github.com/microsoft/Microsoft365DSC/issues/4412)
* M365DSCUtil
* Fix `Compare-PSCustomObjectArrays` by allowing empty arrays as input
FIXES [#4952](https://github.com/microsoft/Microsoft365DSC/issues/4952)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "Group.Read.All"
},
{
"name": "DeviceManagementConfiguration.Read.All"
"name": "DeviceManagementConfiguration.ReadWrite.All"
}
],
"update": [
Expand All @@ -24,7 +24,7 @@
"name": "Group.Read.All"
},
{
"name": "DeviceManagementConfiguration.Read.All"
"name": "DeviceManagementConfiguration.ReadWrite.All"
}
],
"update": [
Expand Down
7 changes: 7 additions & 0 deletions Tests/QA/Microsoft365DSC.SettingsJson.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ Describe -Name 'Successfully validate all used permissions in Settings.json file
)
}

if ($settings.ResourceName -eq 'IntuneDeviceConfigurationCustomPolicyWindows10')
{
$allowedPermissions = @(
'DeviceManagementConfiguration.ReadWrite.All'
)
}

foreach ($permission in $settings.permissions.graph.application.read)
{
$ObjectGuid = [System.Guid]::empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To authenticate with the Microsoft Graph API, this resource required the followi

- **Read**

- Group.Read.All, DeviceManagementConfiguration.Read.All
- Group.Read.All, DeviceManagementConfiguration.ReadWrite.All

- **Update**

Expand All @@ -73,7 +73,7 @@ To authenticate with the Microsoft Graph API, this resource required the followi

- **Read**

- Group.Read.All, DeviceManagementConfiguration.Read.All
- Group.Read.All, DeviceManagementConfiguration.ReadWrite.All

- **Update**

Expand Down

0 comments on commit c0a9552

Please sign in to comment.