Amazon WorkDocs Diagnostics
When to use
Any Amazon WorkDocs investigation — site creation, directory integration, upload/download failures, sync client issues, sharing permissions, collaboration problems, user management, admin controls, migration, storage limits, or API integration.
Investigation workflow
Step 1 — Collect and triage
aws workdocs describe-users --organization-id <org-id> --query 'Users[*].{Username:Username,Status:Status,Type:Type}'
aws workdocs describe-folder-contents --folder-id <folder-id> --type ALL
aws workdocs describe-activities --organization-id <org-id> --limit 20
Step 2 — Domain deep dive
aws workdocs get-document --document-id <doc-id>
aws workdocs get-document-version --document-id <doc-id> --version-id <version-id>
aws workdocs describe-resource-permissions --resource-id <resource-id>
Step 3 — Detailed investigation
aws ds describe-directories --query 'DirectoryDescriptions[*].{Id:DirectoryId,Name:Name,Type:Type,Status:Stage}'
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=workdocs.amazonaws.com --max-results 20
aws workdocs describe-notification-subscriptions --organization-id <org-id>
Read references/guardrails.md before concluding on any WorkDocs issue.
Tool quick reference
| Tool / API |
When to use |
workdocs describe-users |
List users and their status |
workdocs get-document |
Get document metadata |
workdocs describe-folder-contents |
List folder contents |
workdocs describe-resource-permissions |
Check sharing permissions |
workdocs describe-activities |
View activity feed |
workdocs create-user |
Create a new user |
ds describe-directories |
Check directory integration |
Gotchas: Amazon WorkDocs
- WorkDocs requires an AWS Directory Service directory (Simple AD, AD Connector, or AWS Managed Microsoft AD). No directory means no WorkDocs site.
- WorkDocs sites are REGIONAL. Each site is tied to a specific region and directory. Users and content do not replicate across regions.
- User types matter: ADMIN, USER, POWERUSER, and MINIMALUSER have different capabilities and storage quotas. Changing user type affects permissions.
- File size limits exist: maximum single file upload is 5 GB via the API. The web client and sync client may have lower practical limits.
- Sharing permissions are hierarchical: folder permissions cascade to contained documents unless explicitly overridden.
- The WorkDocs sync client is a separate desktop application. Sync issues are often client-side (network, local disk, OS permissions) not service-side.
- WorkDocs API requires authentication tokens for user-level operations. Admin operations use IAM credentials.
Anti-hallucination rules
- Always cite specific organization IDs, user IDs, or API responses as evidence.
- WorkDocs is NOT S3. Never suggest S3 APIs for WorkDocs content management.
- Directory Service integration is required. Never suggest WorkDocs without a directory.
- User types have different capabilities. Never assume all users have the same permissions.
- Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.
12 runbooks
| Category |
IDs |
Covers |
| A — Sites |
A1–A2 |
Site creation failures, directory integration |
| B — Content |
B1–B2 |
Upload/download failures, sync client issues |
| C — Sharing |
C1–C2 |
Sharing permission errors, collaboration issues |
| D — Users |
D1–D2 |
User management, admin controls |
| E — Operations |
E1–E2 |
Migration issues, storage limits |
| F — Integration |
F1 |
API integration |
| Z — Catch-All |
Z1 |
General troubleshooting |
1---2name: workdocs-diagnostics3description: Use this skill to investigate and troubleshoot Amazon WorkDocs problems by analyzing site creation, directory integration, upload/download failures, sync client issues, sharing permissions, collaboration, user management, admin controls, migration, storage, and API integration. Activate when: site creation failures, directory integration issues, upload/download errors, sync client problems, sharing permission errors, user management issues, migration failures, storage limits, or the user says something is wrong with WorkDocs.4---56# Amazon WorkDocs Diagnostics78## When to use910Any Amazon WorkDocs investigation — site creation, directory integration, upload/download failures, sync client issues, sharing permissions, collaboration problems, user management, admin controls, migration, storage limits, or API integration.1112## Investigation workflow1314### Step 1 — Collect and triage1516```17aws workdocs describe-users --organization-id <org-id> --query 'Users[*].{Username:Username,Status:Status,Type:Type}'18aws workdocs describe-folder-contents --folder-id <folder-id> --type ALL19aws workdocs describe-activities --organization-id <org-id> --limit 2020```2122### Step 2 — Domain deep dive2324```25aws workdocs get-document --document-id <doc-id>26aws workdocs get-document-version --document-id <doc-id> --version-id <version-id>27aws workdocs describe-resource-permissions --resource-id <resource-id>28```2930### Step 3 — Detailed investigation3132```33aws ds describe-directories --query 'DirectoryDescriptions[*].{Id:DirectoryId,Name:Name,Type:Type,Status:Stage}'34aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=workdocs.amazonaws.com --max-results 2035aws workdocs describe-notification-subscriptions --organization-id <org-id>36```3738Read `references/guardrails.md` before concluding on any WorkDocs issue.3940## Tool quick reference4142| Tool / API | When to use |43|------------|-------------|44| `workdocs describe-users` | List users and their status |45| `workdocs get-document` | Get document metadata |46| `workdocs describe-folder-contents` | List folder contents |47| `workdocs describe-resource-permissions` | Check sharing permissions |48| `workdocs describe-activities` | View activity feed |49| `workdocs create-user` | Create a new user |50| `ds describe-directories` | Check directory integration |5152## Gotchas: Amazon WorkDocs5354- WorkDocs requires an AWS Directory Service directory (Simple AD, AD Connector, or AWS Managed Microsoft AD). No directory means no WorkDocs site.55- WorkDocs sites are REGIONAL. Each site is tied to a specific region and directory. Users and content do not replicate across regions.56- User types matter: ADMIN, USER, POWERUSER, and MINIMALUSER have different capabilities and storage quotas. Changing user type affects permissions.57- File size limits exist: maximum single file upload is 5 GB via the API. The web client and sync client may have lower practical limits.58- Sharing permissions are hierarchical: folder permissions cascade to contained documents unless explicitly overridden.59- The WorkDocs sync client is a separate desktop application. Sync issues are often client-side (network, local disk, OS permissions) not service-side.60- WorkDocs API requires authentication tokens for user-level operations. Admin operations use IAM credentials.6162## Anti-hallucination rules63641. Always cite specific organization IDs, user IDs, or API responses as evidence.652. WorkDocs is NOT S3. Never suggest S3 APIs for WorkDocs content management.663. Directory Service integration is required. Never suggest WorkDocs without a directory.674. User types have different capabilities. Never assume all users have the same permissions.685. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.6970## 12 runbooks7172| Category | IDs | Covers |73|----------|-----|--------|74| A — Sites | A1–A2 | Site creation failures, directory integration |75| B — Content | B1–B2 | Upload/download failures, sync client issues |76| C — Sharing | C1–C2 | Sharing permission errors, collaboration issues |77| D — Users | D1–D2 | User management, admin controls |78| E — Operations | E1–E2 | Migration issues, storage limits |79| F — Integration | F1 | API integration |80| Z — Catch-All | Z1 | General troubleshooting |