Skip to content

Commit f709d0e

Browse files
authored
feat: add DCv2 complianceSettings (#65)
1 parent 8c16c47 commit f709d0e

22 files changed

+1478
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationChoiceSettingDefinition",
3+
"accessTypes": "add,delete,get,replace",
4+
"keywords": [
5+
"Allow Simple Device Password",
6+
"Device Lock"
7+
],
8+
"infoUrls": [
9+
"https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-devicelock#allowsimpledevicepassword"
10+
],
11+
"baseUri": "./Device/Vendor/MSFT/Policy",
12+
"offsetUri": "/Config/DeviceLock/AllowSimpleDevicePassword",
13+
"rootDefinitionId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled",
14+
"categoryId": "a4fb2510-977f-42ff-9033-6f1eb98f141b",
15+
"settingUsage": "configuration,compliance",
16+
"uxBehavior": "default",
17+
"visibility": "settingsCatalog,template",
18+
"riskLevel": "low",
19+
"id": "device_vendor_msft_policy_config_devicelock_allowsimpledevicepassword",
20+
"description": "Specifies whether PINs or passwords such as 1111 or 1234 are allowed. For the desktop, it also controls the use of picture passwords.",
21+
"helpText": "",
22+
"name": "AllowSimpleDevicePassword",
23+
"displayName": "Allow Simple Device Password",
24+
"defaultOptionId": "device_vendor_msft_policy_config_devicelock_allowsimpledevicepassword_1",
25+
"applicability": {
26+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationWindowsSettingApplicability",
27+
"description": null,
28+
"platform": "windows10",
29+
"deviceMode": "none",
30+
"technologies": "mdm",
31+
"configurationServiceProviderVersion": "1.0",
32+
"maximumSupportedVersion": null,
33+
"minimumSupportedVersion": "10.0.10240",
34+
"windowsSkus": [
35+
"windowsEnterprise",
36+
"windowsProfessional",
37+
"windowsHome",
38+
"windowsEducation",
39+
"holographicForBusiness",
40+
"windowsMultiSession",
41+
"iotEnterprise",
42+
"windowsCloudN",
43+
"windows11SE",
44+
"iotEnterpriseSEval"
45+
],
46+
"requiresAzureAd": false,
47+
"requiredAzureAdTrustType": "none"
48+
},
49+
"occurrence": {
50+
"minDeviceOccurrence": 0,
51+
"maxDeviceOccurrence": 1
52+
},
53+
"referredSettingInformationList": [],
54+
"options": [
55+
{
56+
"itemId": "device_vendor_msft_policy_config_devicelock_allowsimpledevicepassword_0",
57+
"description": "Not allowed.",
58+
"helpText": null,
59+
"name": "Not allowed.",
60+
"displayName": "Not allowed.",
61+
"optionValue": {
62+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
63+
"settingValueTemplateReference": null,
64+
"value": 0
65+
},
66+
"dependentOn": [
67+
{
68+
"dependentOn": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_0",
69+
"parentSettingId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled"
70+
}
71+
],
72+
"dependedOnBy": []
73+
},
74+
{
75+
"itemId": "device_vendor_msft_policy_config_devicelock_allowsimpledevicepassword_1",
76+
"description": "Allowed.",
77+
"helpText": null,
78+
"name": "Allowed.",
79+
"displayName": "Allowed.",
80+
"optionValue": {
81+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
82+
"settingValueTemplateReference": null,
83+
"value": 1
84+
},
85+
"dependentOn": [
86+
{
87+
"dependentOn": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_0",
88+
"parentSettingId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled"
89+
}
90+
],
91+
"dependedOnBy": []
92+
}
93+
]
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationChoiceSettingDefinition",
3+
"accessTypes": "add,delete,get,replace",
4+
"keywords": [
5+
"Alphanumeric Device Password Required",
6+
"Device Lock"
7+
],
8+
"infoUrls": [
9+
"https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-devicelock#alphanumericdevicepasswordrequired"
10+
],
11+
"baseUri": "./Device/Vendor/MSFT/Policy",
12+
"offsetUri": "/Config/DeviceLock/AlphanumericDevicePasswordRequired",
13+
"rootDefinitionId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled",
14+
"categoryId": "a4fb2510-977f-42ff-9033-6f1eb98f141b",
15+
"settingUsage": "configuration,compliance",
16+
"uxBehavior": "default",
17+
"visibility": "settingsCatalog,template",
18+
"riskLevel": "low",
19+
"id": "device_vendor_msft_policy_config_devicelock_alphanumericdevicepasswordrequired",
20+
"description": "Determines the type of PIN or password required. This policy only applies if the DeviceLock/DevicePasswordEnabled policy is set to 0",
21+
"helpText": "",
22+
"name": "AlphanumericDevicePasswordRequired",
23+
"displayName": "Alphanumeric Device Password Required",
24+
"defaultOptionId": "device_vendor_msft_policy_config_devicelock_alphanumericdevicepasswordrequired_2",
25+
"applicability": {
26+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationWindowsSettingApplicability",
27+
"description": null,
28+
"platform": "windows10",
29+
"deviceMode": "none",
30+
"technologies": "mdm",
31+
"configurationServiceProviderVersion": "1.0",
32+
"maximumSupportedVersion": null,
33+
"minimumSupportedVersion": "10.0.10240",
34+
"windowsSkus": [
35+
"windowsEnterprise",
36+
"windowsProfessional",
37+
"windowsHome",
38+
"windowsEducation",
39+
"holographicForBusiness",
40+
"windowsMultiSession",
41+
"iotEnterprise",
42+
"windowsCloudN",
43+
"windows11SE",
44+
"iotEnterpriseSEval"
45+
],
46+
"requiresAzureAd": false,
47+
"requiredAzureAdTrustType": "none"
48+
},
49+
"occurrence": {
50+
"minDeviceOccurrence": 0,
51+
"maxDeviceOccurrence": 1
52+
},
53+
"referredSettingInformationList": [],
54+
"options": [
55+
{
56+
"itemId": "device_vendor_msft_policy_config_devicelock_alphanumericdevicepasswordrequired_0",
57+
"description": "Password or Alphanumeric PIN required.",
58+
"helpText": null,
59+
"name": "Password or Alphanumeric PIN required.",
60+
"displayName": "Password or Alphanumeric PIN required.",
61+
"optionValue": {
62+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
63+
"settingValueTemplateReference": null,
64+
"value": 0
65+
},
66+
"dependentOn": [
67+
{
68+
"dependentOn": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_0",
69+
"parentSettingId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled"
70+
}
71+
],
72+
"dependedOnBy": [
73+
{
74+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_mindevicepasswordcomplexcharacters",
75+
"required": false
76+
}
77+
]
78+
},
79+
{
80+
"itemId": "device_vendor_msft_policy_config_devicelock_alphanumericdevicepasswordrequired_1",
81+
"description": "Password or Numeric PIN required.",
82+
"helpText": null,
83+
"name": "Password or Numeric PIN required.",
84+
"displayName": "Password or Numeric PIN required.",
85+
"optionValue": {
86+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
87+
"settingValueTemplateReference": null,
88+
"value": 1
89+
},
90+
"dependentOn": [
91+
{
92+
"dependentOn": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_0",
93+
"parentSettingId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled"
94+
}
95+
],
96+
"dependedOnBy": []
97+
},
98+
{
99+
"itemId": "device_vendor_msft_policy_config_devicelock_alphanumericdevicepasswordrequired_2",
100+
"description": "Password, Numeric PIN, or Alphanumeric PIN required.",
101+
"helpText": null,
102+
"name": "Password, Numeric PIN, or Alphanumeric PIN required.",
103+
"displayName": "Password, Numeric PIN, or Alphanumeric PIN required.",
104+
"optionValue": {
105+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
106+
"settingValueTemplateReference": null,
107+
"value": 2
108+
},
109+
"dependentOn": [
110+
{
111+
"dependentOn": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_0",
112+
"parentSettingId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled"
113+
}
114+
],
115+
"dependedOnBy": []
116+
}
117+
]
118+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationChoiceSettingDefinition",
3+
"accessTypes": "add,delete,get,replace",
4+
"keywords": [
5+
"DevicePasswordEnabled",
6+
"DeviceLock",
7+
"Device Lock"
8+
],
9+
"infoUrls": [
10+
"https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-devicelock#devicepasswordenabled"
11+
],
12+
"baseUri": "./Device/Vendor/MSFT/Policy",
13+
"offsetUri": "/Config/DeviceLock/DevicePasswordEnabled",
14+
"rootDefinitionId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled",
15+
"categoryId": "a4fb2510-977f-42ff-9033-6f1eb98f141b",
16+
"settingUsage": "configuration,compliance",
17+
"uxBehavior": "toggle",
18+
"visibility": "settingsCatalog,template",
19+
"riskLevel": "low",
20+
"id": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled",
21+
"description": "Specifies whether device lock is enabled.",
22+
"helpText": "",
23+
"name": "DevicePasswordEnabled",
24+
"displayName": "Device Password Enabled",
25+
"defaultOptionId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_1",
26+
"applicability": {
27+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationWindowsSettingApplicability",
28+
"description": null,
29+
"platform": "windows10",
30+
"deviceMode": "none",
31+
"technologies": "mdm",
32+
"configurationServiceProviderVersion": "1.0",
33+
"maximumSupportedVersion": null,
34+
"minimumSupportedVersion": "10.0.10240",
35+
"windowsSkus": [
36+
"windowsEnterprise",
37+
"windowsProfessional",
38+
"windowsHome",
39+
"windowsEducation",
40+
"holographicForBusiness",
41+
"windowsMultiSession",
42+
"iotEnterprise",
43+
"windowsCloudN",
44+
"windows11SE",
45+
"iotEnterpriseSEval"
46+
],
47+
"requiresAzureAd": false,
48+
"requiredAzureAdTrustType": "none"
49+
},
50+
"occurrence": {
51+
"minDeviceOccurrence": 0,
52+
"maxDeviceOccurrence": 1
53+
},
54+
"referredSettingInformationList": [],
55+
"options": [
56+
{
57+
"itemId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_0",
58+
"description": "Enabled",
59+
"helpText": null,
60+
"name": "Enabled",
61+
"displayName": "Enabled",
62+
"optionValue": {
63+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
64+
"settingValueTemplateReference": null,
65+
"value": 0
66+
},
67+
"dependentOn": [],
68+
"dependedOnBy": [
69+
{
70+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_allowidlereturnwithoutpassword",
71+
"required": false
72+
},
73+
{
74+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_allowsimpledevicepassword",
75+
"required": false
76+
},
77+
{
78+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_alphanumericdevicepasswordrequired",
79+
"required": false
80+
},
81+
{
82+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_devicepasswordexpiration",
83+
"required": false
84+
},
85+
{
86+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_devicepasswordhistory",
87+
"required": false
88+
},
89+
{
90+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_maxdevicepasswordfailedattempts",
91+
"required": false
92+
},
93+
{
94+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_maxinactivitytimedevicelock",
95+
"required": false
96+
},
97+
{
98+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_mindevicepasswordcomplexcharacters",
99+
"required": false
100+
},
101+
{
102+
"dependedOnBy": "device_vendor_msft_policy_config_devicelock_mindevicepasswordlength",
103+
"required": false
104+
}
105+
]
106+
},
107+
{
108+
"itemId": "device_vendor_msft_policy_config_devicelock_devicepasswordenabled_1",
109+
"description": "Disabled",
110+
"helpText": null,
111+
"name": "Disabled",
112+
"displayName": "Disabled",
113+
"optionValue": {
114+
"@odata.type": "#microsoft.graph.deviceManagementConfigurationIntegerSettingValue",
115+
"settingValueTemplateReference": null,
116+
"value": 1
117+
},
118+
"dependentOn": [],
119+
"dependedOnBy": []
120+
}
121+
]
122+
}

0 commit comments

Comments
 (0)