Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important: Microsoft supports Intune /beta APIs, but they are subject to more frequent change. Microsoft recommends using version v1.0 when possible. Check an API's availability in version v1.0 using the Version selector.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Update the properties of a groupPolicySettingMapping object.
This API is available in the following national cloud deployments.
| Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
| Permission type | Permissions (from least to most privileged) |
|---|---|
| Delegated (work or school account) | DeviceManagementConfiguration.ReadWrite.All |
| Delegated (personal Microsoft account) | Not supported. |
| Application | DeviceManagementConfiguration.ReadWrite.All |
HTTP Request
PATCH /deviceManagement/groupPolicyMigrationReports/{groupPolicyMigrationReportId}/groupPolicySettingMappings/{groupPolicySettingMappingId}
Request headers
| Header | Value |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Accept | application/json |
Request body
In the request body, supply a JSON representation for the groupPolicySettingMapping object.
The following table shows the properties that are required when you create the groupPolicySettingMapping.
| Property | Type | Description |
|---|---|---|
| id | String | |
| parentId | String | Parent Id of the group policy setting. |
| childIdList | String collection | List of Child Ids of the group policy setting. |
| settingName | String | The name of this group policy setting. |
| settingValue | String | The value of this group policy setting. |
| settingValueType | String | The value type of this group policy setting. |
| settingDisplayName | String | The display name of this group policy setting. |
| settingDisplayValue | String | The display value of this group policy setting. |
| settingDisplayValueType | String | The display value type of this group policy setting. |
| settingValueDisplayUnits | String | The display units of this group policy setting value |
| settingCategory | String | The category the group policy setting is in. |
| mdmCspName | String | The CSP name this group policy setting maps to. |
| mdmSettingUri | String | The MDM CSP URI this group policy setting maps to. |
| mdmMinimumOSVersion | Int32 | The minimum OS version this mdm setting supports. |
| settingType | groupPolicySettingType | The setting type (security or admx) of the Group Policy. Possible values are: unknown, policy, account, securityOptions, userRightsAssignment, auditSetting, windowsFirewallSettings, appLockerRuleCollection, dataSourcesSettings, devicesSettings, driveMapSettings, environmentVariables, filesSettings, folderOptions, folders, iniFiles, internetOptions, localUsersAndGroups, networkOptions, networkShares, ntServices, powerOptions, printers, regionalOptionsSettings, registrySettings, scheduledTasks, shortcutSettings, startMenuSettings. |
| isMdmSupported | Boolean | Indicates if the setting is supported by Intune or not |
| mdmSupportedState | mdmSupportedState | Indicates if the setting is supported in Mdm or not. Possible values are: unknown, supported, unsupported, deprecated. |
| settingScope | groupPolicySettingScope | The scope of the setting. Possible values are: unknown, device, user. |
| intuneSettingUriList | String collection | The list of Intune Setting URIs this group policy setting maps to |
| intuneSettingDefinitionId | String | The Intune Setting Definition Id |
| admxSettingDefinitionId | String | Admx Group Policy Id |
Response
If successful, this method returns a 200 OK response code and an updated groupPolicySettingMapping object in the response body.
Example
Request
Here is an example of the request.
PATCH https://graph.microsoft.com/beta/deviceManagement/groupPolicyMigrationReports/{groupPolicyMigrationReportId}/groupPolicySettingMappings/{groupPolicySettingMappingId}
Content-type: application/json
Content-length: 1023
{
"@odata.type": "#microsoft.graph.groupPolicySettingMapping",
"parentId": "Parent Id value",
"childIdList": [
"Child Id List value"
],
"settingName": "Setting Name value",
"settingValue": "Setting Value value",
"settingValueType": "Setting Value Type value",
"settingDisplayName": "Setting Display Name value",
"settingDisplayValue": "Setting Display Value value",
"settingDisplayValueType": "Setting Display Value Type value",
"settingValueDisplayUnits": "Setting Value Display Units value",
"settingCategory": "Setting Category value",
"mdmCspName": "Mdm Csp Name value",
"mdmSettingUri": "Mdm Setting Uri value",
"mdmMinimumOSVersion": 3,
"settingType": "policy",
"isMdmSupported": true,
"mdmSupportedState": "supported",
"settingScope": "device",
"intuneSettingUriList": [
"Intune Setting Uri List value"
],
"intuneSettingDefinitionId": "Intune Setting Definition Id value",
"admxSettingDefinitionId": "Admx Setting Definition Id value"
}
Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1072
{
"@odata.type": "#microsoft.graph.groupPolicySettingMapping",
"id": "8fa04560-4560-8fa0-6045-a08f6045a08f",
"parentId": "Parent Id value",
"childIdList": [
"Child Id List value"
],
"settingName": "Setting Name value",
"settingValue": "Setting Value value",
"settingValueType": "Setting Value Type value",
"settingDisplayName": "Setting Display Name value",
"settingDisplayValue": "Setting Display Value value",
"settingDisplayValueType": "Setting Display Value Type value",
"settingValueDisplayUnits": "Setting Value Display Units value",
"settingCategory": "Setting Category value",
"mdmCspName": "Mdm Csp Name value",
"mdmSettingUri": "Mdm Setting Uri value",
"mdmMinimumOSVersion": 3,
"settingType": "policy",
"isMdmSupported": true,
"mdmSupportedState": "supported",
"settingScope": "device",
"intuneSettingUriList": [
"Intune Setting Uri List value"
],
"intuneSettingDefinitionId": "Intune Setting Definition Id value",
"admxSettingDefinitionId": "Admx Setting Definition Id value"
}