1,393 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
List failing Drata monitoring tests
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.
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.
Drata: list my compliance checks
List the signed-in employee's own Drata compliance checks (the items on the Drata employee hub): each check's type, pass/fail status, completion date, last check and expiry, plus totals. Read-only; changes nothing in Drata.
Retest a monitor (Drata)
Re-runs one Drata monitoring test right away (the "Test now" button) instead of waiting for the daily check, then waits for the new result and returns the status before and after, with the failing and excluded resource counts. Takes the test number shown in the Drata UI (e.g. 7 for "Only Authorized Employees Change Code"). Requires being signed in to Drata.
List expiring evidence (Drata)
Lists the Drata evidence library items that need attention: those whose renewal date falls within the next N days, those already expired, and optionally those that never received an artifact. For each item returns its name, status, renewal date and schedule, linked controls and a link to its page. Read-only.
List Drata platform users
List the users of the signed-in Drata workspace (Settings, Role administration): each user's email, first and last name, roles, date added and last login, plus a total. Pass an email to also learn whether that person is still listed, e.g. to confirm an offboarding went through. Needs a Drata session. Read-only: it never changes a user or a role.
Drata compliance status: failing tests, controls and personnel
Get everything currently failing in your Drata workspace in one call: the monitoring tests in failure with the date they started failing, the number of days since and the failing resources; the in-scope controls that are not ready with what they are missing; and the current personnel who are not compliant with the checks they fail. Needs a Drata session. Read-only: it changes nothing in Drata.
Renew an evidence with a new file (Drata)
Uploads a new file to an evidence of the Drata evidence library, making it the current artifact and moving the previous one to past artifacts. Sets the creation date (today by default); Drata computes the next renewal date from the evidence's schedule. Returns the new current artifact with its creation and renewal dates. Requires being signed in to Drata.
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.
Delete an evidence (Drata)
Permanently deletes one evidence from the Drata evidence library, with all its current and past artifacts; this cannot be undone. Always run it first as a dry run (the default), show the user the evidence name and id it found, and only run it with dryRun false after the user has explicitly confirmed that deletion. The caller must also pass the evidence's exact name, which is checked against the page before anything is deleted. Requires being signed in to Drata.
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.
