How can I get setting data by settingDefinitionId

Artem 1 Reputation point
2021-11-19T02:01:33.287+00:00

Hello

I have a problem while using Micorsoft Graph API.
I wanted to get a setting data by settingDefinitionId.
I already got settings of device configuration policy using follow URI.

GET https://graph.microsoft.com/beta/deviceManagement/configurationPolicies/{deviceManagementConfigurationPolicyId}/settings

"settings": [
                    {
                        "@odata.type": "#microsoft.graph.deviceManagementConfigurationSetting",
                        "settingInstance": {
                            "@odata.type": "#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance",
                            "settingDefinitionId": "device_vendor_msft_policy_config_power_standbytimeoutonbattery",
                            "settingInstanceTemplateReference": null,
                            "choiceSettingValue": {
                                "settingValueTemplateReference": null,
                                "value": "device_vendor_msft_policy_config_power_standbytimeoutonbattery_1",
                                "children": [
                                    {
                                        "@odata.type": "#microsoft.graph.deviceManagementConfigurationSimpleSettingInstance",
                                        "settingDefinitionId": "device_vendor_msft_policy_config_power_standbytimeoutonbattery_enterdcstandbytimeout",
                                        "settingInstanceTemplateReference": null,
                                        "simpleSettingValue": {
                                            "@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
                                            "settingValueTemplateReference": null,
                                            "value": 900
                                        }
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "@odata.type": "#microsoft.graph.deviceManagementConfigurationSetting",
                        "settingInstance": {
                            "@odata.type": "#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance",
                            "settingDefinitionId": "device_vendor_msft_policy_config_power_standbytimeoutpluggedin",
                            "settingInstanceTemplateReference": null,
                            "choiceSettingValue": {
                                "settingValueTemplateReference": null,
                                "value": "device_vendor_msft_policy_config_power_standbytimeoutpluggedin_1",
                                "children": [
                                    {
                                        "@odata.type": "#microsoft.graph.deviceManagementConfigurationSimpleSettingInstance",
                                        "settingDefinitionId": "device_vendor_msft_policy_config_power_standbytimeoutpluggedin_enteracstandbytimeout",
                                        "settingInstanceTemplateReference": null,
                                        "simpleSettingValue": {
                                            "@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
                                            "settingValueTemplateReference": null,
                                            "value": 1800
                                        }
                                    }
                                ]
                            }
                        }
                    }
]

As you can see in this data, children also have settingDefinitionId.
When I know the value of settingDefinitionId, how can I get only one setting data?

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,056 questions
{count} votes