List failing Drata monitoring tests
Automatically list failing Drata monitoring tests on drata.com. List the Drata monitoring tests that are currently failing in production, each with its failing resources or people: name, account, region and severity, plus how many findings and exclusions it has. Needs a Drata session. Read-only: it changes nothing in Drata.
Input
workspaceId optionalDrata workspace id. Defaults to the workspace the app opens.
includeFindings optionalAlso fetch the failing resources (findings) of each failing test.
Default: trueOutput
tests requiredfailingCount requiredcheckedAt optionalFAQ
Drata whoami (signed-in account)
Report which Drata account this browser is signed in as: the user id, email, first and last name, roles, account type, and the workspace and region the app opened. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Drata scripts.
Exclude a Drata monitoring finding
Exclude one failing resource (a repository, a person, a cloud resource) from a Drata monitoring test, with the written justification Drata shows auditors in its audit packages. Give the test page URL, the resource exactly as listed in the test's findings, and the reason. Needs a Drata session. It changes your compliance results, and undoing it is done from the test's Exclusions tab.
Drata: list my policies
List the Drata policies assigned to the signed-in employee, with each policy's name, description, published date and whether (and when) the employee accepted it, plus totals. Read-only; it never accepts a policy.
