Edit

workflow: clearQuarantine

Namespace: microsoft.graph.identityGovernance

Release a quarantined workflow so that it resumes processing. A workflow is automatically quarantined when a run exceeds the threshold conditions defined in its quarantineConfiguration. After an administrator reviews the cause of the quarantine, calling this action clears the quarantine state and allows the workflow to run again.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permission Higher privileged permissions
Delegated (work or school account) Not supported. Not supported.
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

Important

For delegated access using work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. Lifecycle Workflows Administrator is the least privileged role supported for this operation.

HTTP request

POST /identityGovernance/lifecycleWorkflows/workflows/{workflowId}/clearQuarantine

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this action returns a 200 OK response code and a workflow in the response body.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/v1.0/identityGovernance/lifecycleWorkflows/workflows/{workflowId}/clearQuarantine

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.identityGovernance.workflow",
  "id": "156ca8c6-d706-4cee-8ed6-c4fd1abe3f24",
  "category": "leaver",
  "displayName": "Offboard an employee",
  "description": "Configure offboarding tasks for employees after their last day of work",
  "createdDateTime": "2025-09-04T16:13:00Z",
  "lastModifiedDateTime": "2026-06-09T17:42:11Z",
  "deletedDateTime": null,
  "isEnabled": true,
  "isSchedulingEnabled": true,
  "nextScheduleRunDateTime": "2026-06-10T00:00:00Z",
  "version": 5,
  "executionConditions": {
    "@odata.type": "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions"
  },
  "quarantineDetails": {
    "quarantinedDateTime": null,
    "quarantineReason": null,
    "quarantineType": "notQuarantined"
  },
  "settings": {
    "quarantineConfiguration": {
      "matchMode": "any",
      "conditions": [
        {
          "@odata.type": "#microsoft.graph.identityGovernance.countBasedQuarantineCondition",
          "threshold": 100
        }
      ]
    }
  }
}