Update and Reassign Compliance Policy
A 3-step recipe with Microsoft Endpoint Configuration Management. We can help you get access.
Recipe · 3 steps
Update and Reassign Compliance Policy
with Microsoft Endpoint Configuration Management · Information Technology Management
Read, update, and reassign an existing compliance policy.
- Read the existing compliance policy by id.
- Patch the policy display name and description.
- Reassign the updated policy to the supplied Azure AD group.
What you'll need to have ready
- accessToken: OAuth 2.0 bearer token for Microsoft Graph (DeviceManagementConfiguration.ReadWrite.All).
- deviceCompliancePolicyId: The id of the compliance policy to update.
- displayName: The new display name for the policy.
- description: The new description for the policy.
- groupId: The Azure AD group id to reassign the policy to.
For your developer
Arazzo workflow microsoft-endpoint-configuration-management:update-and-reassign-compliance-policy, 3 operations: getDeviceCompliancePolicy → updateDeviceCompliancePolicy → assignDeviceCompliancePolicy. Specs on APIs.io.