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

Yevhen Filipov 20 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 Security | Microsoft Defender | Microsoft Defender for Cloud
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Crystal-MSFT 54,206 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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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