View as Markdown
Drata icon

Drata ACTION

Upload User Compliance Document

Upload a user compliance document. See the documentation.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Drata account once, then configure and run Upload User Compliance Document from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "drata-upload-user-compliance-document",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    drata: { authProvisionId: "apn_xxxxxxx" },
    userId: 10,
    documentType: "Document Type",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Upload User Compliance Document inputs
Property Type Description
userId Personnel ID integer
The ID of the personnel.
Required Dynamic
documentType Document Type string
The user document type
Required
url URL string
The URL of the document file.
Required
filename Filename string
The filename of the document file.
Required
extension Extension string
The extension of the document file.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
drata-upload-user-compliance-document
Version
0.0.4
App
Drata
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes