Skip to main content

Protect Document in Power Automate

PDF4me Protect Document action delivers comprehensive PDF security in Power Automate with password protection and granular permission controls. This powerful security feature safeguards sensitive information by preventing unauthorized access, controlling document usage rights, and ensuring compliance with data protection policies across Microsoft 365 workflows.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Authenticating Your API Request​

To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful document protection services.

Protect Document Power Automate

Key Features​

  • Password Protection: Secure PDFs with strong password encryption
  • Granular Permissions: Control copy, print, modify, and annotation rights
  • Multiple Permission Levels: Choose from preset permission configurations
  • Batch Protection: Apply security to multiple documents in workflows
  • Compliance Ready: Meet data protection and security compliance requirements

Parameters​

Complete list of parameters for the Protect Document action. Configure these parameters to control document security.

ParameterRequiredWhat it doesExample
File ContentRequiredContent of the PDF to protect. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.[File Content from Get File]
File NameRequiredName of the PDF to protect, including its extension (for example `invoice.pdf`). Map it from the file name returned by a previous action.ConfidentialReport.pdf
PasswordRequiredPassword to protect the PDF with. The field is a plain text field, so the value is visible in the action card and in the run history; store it in Azure Key Vault or a secure environment variable and turn on Secure Inputs for the action.SecurePass123!
PDF PermissionRequiredAction that users are allowed to perform on the protected PDF, for example Print or Copy. All allows every action and None allows none. Options: All, None, Copy, Annotate, FillForms, SupportDisabilities, Assemble, DigitalPrint, Print, Modify. Defaults to `All`.All

Output​

The PDF4me Protect Document action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

FieldTypeWhat it contains
File ContentFile contentContent of the password-protected PDF. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file.
File NameTextFile name of the password-protected PDF, as returned by PDF4me. Use it as the file name when saving the file.
Page CountTextPage count reported by PDF4me for the processed document. Returned as text; wrap it in int() to use it as a number.

Workflow Examples​

The PDF4me Protect Document action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Financial Report Protection Workflow

Transform your financial reporting security with automated password protection:

Complete Workflow Steps:

  1. Trigger: Scheduled trigger - monthly financial close on 5th at 8 AM
  2. Generate Report: Create monthly financial report PDF from Excel/BI tool
  3. Generate Password: Create unique password using date + company code formula
  4. Protect Document: Apply password protection with "Copy" permission only
  5. Email CFO: Send protected report to CFO with password in separate email
  6. Email Password: Send password to CFO via SMS or Teams message
  7. Archive Protected: Save protected report in secure SharePoint folder
  8. Log Security: Record protection details in security audit log

Business Benefits:

  • Protects 12 critical financial reports monthly automatically
  • Prevents unauthorized access to sensitive financial data
  • Ensures SOX compliance with document encryption
  • Eliminates manual password protection saving 2 hours monthly

Industry Use Cases & Applications​

Finance & Banking Use Cases

  • Financial Statements: Protect quarterly and annual financial reports
  • Audit Documents: Secure audit reports and compliance documentation
  • Investment Reports: Protect client portfolio and investment analysis documents
  • Loan Documents: Secure loan agreements and financial contracts

Get Help​