Compliance Check Exclusions remove a curated list of personnel from specific personnel compliance checks (e.g. Offboarding) without setting them out of scope — their status in other tests and in the audit population is unchanged. An Exclusion covers one subject (targetId/targetType) for one or more compliance check types, and only counts while it is in force: from its startDate until its endDate, or indefinitely when endDate is null. Excluding a subject that is already excluded from some of the requested types adds only the types it was missing. Deleting an Exclusion for some of the types it covers narrows it to the remaining types rather than removing it, so removing one check never silently removes another. Both bulk endpoints report a per-target outcome, so a single invalid, already-handled or out-of-scope personnel ID does not fail the batch.
Returns a cursor-paginated list of personnel compliance-check exclusions that are currently in force, most-recently-created first. When the workspace has a configured personnel scope, results are limited to personnel inside it; when it has none, the whole tenant is returned. Optionally filter to a single compliance check type.
🔒 Requires Monitoring: List Compliance Check Exclusions permission.
Successful
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": 1,
- "reason": "Employee is on extended leave",
- "createdById": 1,
- "createdAt": "2025-07-01T16:45:55.246Z",
- "startDate": "2025-07-01T16:45:55.246Z",
- "endDate": "2025-07-01T16:45:55.246Z",
- "targetId": "1",
- "targetType": "PERSONNEL",
- "complianceCheckTypes": [
- "OFFBOARDING"
]
}
], - "pagination": {
- "cursor": "string"
}
}Excludes a curated list of personnel from the given compliance check types (e.g. Offboarding) without setting anyone out of scope — their status in other tests and in the audit population is unchanged. A target already excluded from every requested type is left untouched; one excluded from only some of them gets a new exclusion covering the rest. Each requested target id is reported with a per-target outcome, so an id that is invalid, already excluded, or outside this workspace's personnel scope does not fail the batch. Time-boxed exclusions are supported via startDate / endDate. When the workspace has a configured personnel scope, workspaceId limits which personnel the caller may target; when it has none, the whole tenant is targetable.
🔒 Requires Monitoring: Exclude Personnel From Compliance Checks permission.
Created
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "targetIds": [
- "1",
- "2"
], - "complianceCheckTypes": [
- "OFFBOARDING"
], - "reason": "Offboarded before the audit window.",
- "startDate": "2025-07-01T16:45:55.246Z",
- "endDate": "2025-07-01T16:45:55.246Z"
}{- "results": [
- {
- "targetId": "1",
- "outcome": "EXCLUDED",
- "exclusionIds": [
- 10
]
}
], - "successCount": 2,
- "skippedCount": 1
}Deletes a curated list of personnel's exclusions for the given compliance check types, putting those personnel back in scope for those checks. Symmetric with the exclude call (same personnel targetIds + complianceCheckTypes). An exclusion covering only the requested types is archived; one that also covers other types is narrowed to just those other types, so deleting an exclusion for one check never silently removes it for another. Each requested target id is reported with a per-target outcome; a target with no matching in-force exclusion, or one outside this workspace, does not fail the batch. When the workspace has a configured personnel scope, workspaceId limits which personnel the caller may target; when it has none, the whole tenant is targetable.
🔒 Requires Monitoring: Re-include Personnel Into Compliance Checks permission.
Successful
Malformed data and/or validation errors
Invalid Authorization
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "targetIds": [
- "1",
- "2"
], - "complianceCheckTypes": [
- "OFFBOARDING"
]
}{- "results": [
- {
- "targetId": "1",
- "outcome": "DELETED",
- "exclusionIds": [
- 10
]
}
], - "successCount": 2,
- "skippedCount": 1
}