List the latest policy version that was distributed to a user to see if they've accepted it
Invalid Authorization
Response Code 402
You must pay to activate this feature
You are not allowed to perform this action
Response Code: 412
You must accept the Drata terms and conditions to use the API
Internal server error
{- "userPolicyVersions": [
- {
- "id": 1,
- "acceptedAt": "2025-07-01T16:45:55.246Z",
- "policyVersion": {
- "id": 1,
- "version": 1,
- "minorVersion": 1,
- "current": true,
- "type": "UPLOADED",
- "docViewer": "NATIVE",
- "description": "This policy defines how you do XYZ",
- "html": "<html><body>Text</body></html>",
- "weekTimeFrameSLAs": "WeekTimeFrameSLAResponsePublicDto[]",
- "p3MatrixSLAs": "P3MatrixSLAsResponsePublicDto[]",
- "gracePeriodSLAs": "GracePeriodSLAResponsePublicDto[]",
- "renewalDate": "2025-07-01T16:45:55.246Z",
- "approvedAt": "2025-07-01T16:45:55.246Z",
- "publishedAt": "2025-07-01T16:45:55.246Z",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "htmlLastUpdated": "2025-07-01T16:45:55.246Z",
- "owner": {
- "id": 1,
- "firstName": "Sally",
- "lastName": "Smith",
- "jobTitle": "CEO",
- "drataTermsAgreedAt": "2025-07-01T16:45:55.246Z",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "roles": [
- "ROLE",
- "ANOTHER_ROLE"
], - "backgroundChecks": [
- {
- "id": 1,
- "userId": 1,
- "status": "OK",
- "caseId": "abc123",
- "caseInvitationId": "abc123",
- "manualCheckDate": "2020-07-06",
- "manuallyCheckUrl": "url.com",
- "type": "CERTN",
- "source": "DRATA",
- "reportData": "string",
- "user": { },
- "outOfScopeReason": "abc123",
- "outOfScopeAt": "2025-07-01T16:45:55.246Z",
- "linkedAt": "2025-07-01T16:45:55.246Z",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
], - "identities": [
- {
- "id": 1,
- "identityId": "1a2b3c",
- "username": "Username",
- "connectedAt": "2025-07-01T16:45:55.246Z",
- "disconnectedAt": "2025-07-01T16:45:55.246Z",
- "hasMfa": true,
- "user": { },
- "connection": {
- "id": null,
- "clientType": null,
- "state": null,
- "connected": null,
- "connectedAt": null,
- "failedAt": null,
- "companyId": null,
- "assignmentId": null,
- "user": null,
- "accountId": null,
- "clientId": null,
- "clientAlias": null,
- "manuallyUpdatedAt": null,
- "aliasUpdatedAt": null,
- "deletedAt": null,
- "requestorId": null,
- "product": { },
- "writeAccessEnabled": null,
- "sourcePreference": null,
- "securityLabel": null,
- "jqlQuery": null,
- "authorized": null,
- "workspaces": [ ],
- "providerTypes": [ ],
- "code": null,
- "groupLabel": null
}, - "hasIdp": true,
- "firstName": "John",
- "lastName": "Doe",
- "startedAt": "2025-07-01T16:45:55.246Z",
- "separatedAt": "2025-07-01T16:45:55.246Z",
- "isContractor": true,
- "jobTitle": "Engineer",
- "managerId": "x00jk12-2312",
- "managerName": "string"
}
]
}, - "changesExplanation": "- This is what changes in the new version. - And this is another change.",
- "status": "DRAFT"
}, - "policy": {
- "id": 1,
- "templateId": 1,
- "name": "Acceptable Use Policy",
- "currentDescription": "This policy defines how you do XYZ",
- "htmlLastUpdated": "2025-07-01T16:45:55.246Z",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "currentOwner": {
- "id": 1,
- "firstName": "Sally",
- "lastName": "Smith",
- "jobTitle": "CEO",
- "drataTermsAgreedAt": "2025-07-01T16:45:55.246Z",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "roles": [
- "ROLE",
- "ANOTHER_ROLE"
], - "backgroundChecks": [
- {
- "id": 1,
- "userId": 1,
- "status": "OK",
- "caseId": "abc123",
- "caseInvitationId": "abc123",
- "manualCheckDate": "2020-07-06",
- "manuallyCheckUrl": "url.com",
- "type": "CERTN",
- "source": "DRATA",
- "reportData": "string",
- "user": { },
- "outOfScopeReason": "abc123",
- "outOfScopeAt": "2025-07-01T16:45:55.246Z",
- "linkedAt": "2025-07-01T16:45:55.246Z",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
], - "identities": [
- {
- "id": 1,
- "identityId": "1a2b3c",
- "username": "Username",
- "connectedAt": "2025-07-01T16:45:55.246Z",
- "disconnectedAt": "2025-07-01T16:45:55.246Z",
- "hasMfa": true,
- "user": { },
- "connection": {
- "id": null,
- "clientType": null,
- "state": null,
- "connected": null,
- "connectedAt": null,
- "failedAt": null,
- "companyId": null,
- "assignmentId": null,
- "user": null,
- "accountId": null,
- "clientId": null,
- "clientAlias": null,
- "manuallyUpdatedAt": null,
- "aliasUpdatedAt": null,
- "deletedAt": null,
- "requestorId": null,
- "product": { },
- "writeAccessEnabled": null,
- "sourcePreference": null,
- "securityLabel": null,
- "jqlQuery": null,
- "authorized": null,
- "workspaces": [ ],
- "providerTypes": [ ],
- "code": null,
- "groupLabel": null
}, - "hasIdp": true,
- "firstName": "John",
- "lastName": "Doe",
- "startedAt": "2025-07-01T16:45:55.246Z",
- "separatedAt": "2025-07-01T16:45:55.246Z",
- "isContractor": true,
- "jobTitle": "Engineer",
- "managerId": "x00jk12-2312",
- "managerName": "string"
}
]
}, - "versions": "PolicyVersionResponsePublicDto[]",
- "policyWeekTimeFrameSLAs": "PolicyWeekTimeFrameSLAResponsePublicDto[]",
- "policyGracePeriodSLAs": "PolicyGracePeriodSLAResponsePublicDto[]",
- "policyP3MatrixSLAs": "PolicyP3MatrixSLAResponsePublicDto[]",
- "groups": [
- {
- "id": 1,
- "name": "Operations",
- "description": "This is an example",
- "externalId": "23kemoi23em",
- "source": "GOOGLE",
- "domain": "email.com",
- "type": "GROUP",
- "orgUnitPath": "asdas/qweqwe/asdasd",
- "membersCount": 10
}
], - "assignedTo": "ALL",
- "notifyGroups": false,
- "reminders": "ReminderResponsePublicDto[]",
- "policyStatus": "ACTIVE"
}
}
]
}