How to get value for "encryptedValueToken" in Intune using Graph API

Yevhen Filipov 0 Reputation points
2024-09-08T20:05:44.7266667+00:00
 "valueState": **"encryptedValueToken"**
{
    "name": "EDR Policy",
    "description": "",
    "creationSource": null,
    "settings": [
        {
            "id": "0",
            "settingInstance": {
                "@odata.type": "#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance",
                "settingDefinitionId": "device_vendor_msft_windowsadvancedthreatprotection_configurationtype",
                "settingInstanceTemplateReference": {
                    "settingInstanceTemplateId": "23ab0ea3-1b12-429a-8ed0-7390cf699160"
                },
                "choiceSettingValue": {
                    "value": "device_vendor_msft_windowsadvancedthreatprotection_configurationtype_autofromconnector",
                    "settingValueTemplateReference": {
                        "settingValueTemplateId": "e5c7c98c-c854-4140-836e-bd22db59d651",
                        "useTemplateDefault": false
                    },
                    "children": [
                        {
                            "@odata.type": "#microsoft.graph.deviceManagementConfigurationSimpleSettingInstance",
                            "settingDefinitionId": "device_vendor_msft_windowsadvancedthreatprotection_onboarding_fromconnector",
                            "settingInstanceTemplateReference": null,
                            "simpleSettingValue": {
                                "@odata.type": "#microsoft.graph.deviceManagementConfigurationSecretSettingValue",
                                "settingValueTemplateReference": null,
                                "value": "fb9421d4-be45-4853-bcb2-4297cc33d222",
                                "valueState": "encryptedValueToken"
                            }
                        }
                    ]
                }
            }

I Use this json templete to create EDR Policy, but i don`t know where to find "valueState": "encryptedValueToken", when i do it manyally microsoft automaticaly upload it.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,264 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,499 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,570 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 52,816 Reputation points Microsoft External Staff
    2024-09-09T02:41:39.8366667+00:00

    @Yevhen Filipov, Thanks for posting in Q&A. Based on my researching, I don't find any official article talking about the "encryptedValueToken". I also try to Open DevTool when I create an EDR policy in Intune portal. But I don't find it included either.

    User's image

    To get help, you can open Premier case with the steps in the following link:

    https://learn.microsoft.com/en-us/mem/get-support

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.