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.
Input
None
Output
evidence requiredloggedIn requiredemail optionalroles optionalregion optionaluserId optionallastName optionalfirstName optionalaccountType optionalworkspaceSlug optionalFAQ
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 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.
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.
