What is the issue?
CloudFiles users may encounter automation failures when Salesforce flows, process builders, or other automation tools attempt to execute CloudFiles actions (such as creating account folders or managing documents). The error typically appears as:
"Bad Request: Context user [user@email.com] doesn't have a product license"

The product referenced will be one of:
- Document AI
- Document Management
- Document Generation
Admins receive an error email notification when this occurs, and the automation fails to complete.
Why does this happen?
CloudFiles enforces mandatory license checks on all Salesforce automation actions. When a Salesforce automation executes a CloudFiles action, the context user (the user whose context the automation runs under) is passed to CloudFiles. If this user doesn't have an assigned CloudFiles license, the action is blocked and an exception is thrown.
This check prevents license abuse where unlimited users could create folders or use CloudFiles features through automation with only a minimal number of licenses purchased.
How to fix this issue?
To resolve context user license failures and restore automation functionality:
1. Identify the Context User
Review the error email sent to admins, which will identify the specific user (email address) who needs a license.
2. Assign a License to the User
Navigate to CloudFiles license management and assign an appropriate license (Document AI, Document Management, or Document Management) to the identified user.
If you have auto-assignment enabled and available licenses in your plan, licenses will be automatically assigned when the automation runs again.
You can also assign these licenses manually. Go to CloudFiles App → [Product] tab → User Management, click the pencil icon beside the License Status of a user, select Active or Inactive, then click Save.
Need more help assigning licenses? Refer to the license management articles for:
3. If No Licenses Are Available
If you've consumed all licenses in your current plan, you'll need to purchase additional licenses or reallocate existing ones. Contact your CloudFiles sales representative or reach out to support for assistance with upgrading your plan.
For Document AI, some customers have licensing based on pages processed or other consumption metrics rather than per-user licenses. For these customers, this automation check may be disabled.
If you have page-based or process-based licensing and are still encountering this error, please contact CloudFiles support or check with your sales representative to verify your licensing type and ensure the appropriate configuration is in place.
Once a valid license is assigned to the context user, retry the automation. The CloudFiles action should now complete successfully without errors.