Learning resourcesReviewed · Mistral AI

Mistral On-behalf-of Workflows Guide

This guide teaches developers how to make Mistral workflows act as the triggering user, but it requires a hardened deployment and cannot support scheduled runs. It covers Python configuration, short-lived identity tokens and choosing between user and worker credentials for individual API calls.

Researched 15 Nov 2026

In short.

This guide helps developers build Mistral workflows that act as the triggering user, with a hardened deployment required and scheduled runs excluded. It explains workflow configuration, automatic exchange and refresh of short-lived identity tokens, and choosing user or worker credentials within an activity. The page supports understanding the feature and its constraints, but does not establish complete deployment steps, pricing, detailed authorization rules or verified runtime behavior.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected documentation page at [https://docs.mistral.ai/studio/workflows/building-workflows/on_behalf_of.md], including the hardened-deployment warning, both credential modes, Python examples, scheduling prohibition and execution-scoped token constraints. Linked pages and other documentation are excluded. No code, deployment, API request, identity exchange or workflow was executed; runtime behavior, performance and detailed authorization boundaries remain unverified.

The overview

Identity

On-behalf-of workflows is a Mistral documentation guide at [https://docs.mistral.ai/studio/workflows/building-workflows/on_behalf_of.md]. It describes an execution mode in which a workflow can use the identity of the person who triggered it. The resource is instructional documentation with Python examples, rather than a standalone application or downloadable workflow package.

Assessment

The guide is useful when deciding how a workflow should access user-specific connectors, workspace resources or the Mistral API. Its strongest practical detail is the distinction between enabling user identity on the workflow and explicitly selecting that identity on the client. It also states deployment and trigger restrictions clearly. It is not a complete deployment tutorial, and no code or workflow was executed for this report.

Users

The intended readers are developers building Mistral workflows whose requests must reflect the person initiating them. Platform engineers also need the deployment and identity requirements. Beginners can use the examples to understand the difference between a user's credentials and the worker's credentials, but the page assumes familiarity with asynchronous Python, workflow activities and an existing Mistral workflow environment.

Capabilities

OBO mode makes the triggering user's identity available during execution so activities can obtain credentials representing that user without receiving the user's API key or session token. The page identifies user connectors, workspace-scoped resources and Mistral API calls as intended uses, although its concrete example demonstrates only a chat API call.

An activity can create both a user client and a worker client, allowing it to choose the identity for individual calls. The client helper also handles telemetry and observability metadata, but the page does not explain those features in detail.

Using it

Requirements

OBO workflows require a hardened deployment and cannot be registered in a non-hardened deployment. The caller must have a full user identity: executions triggered by API keys without user_id / organization_id headers are rejected. The page does not explain how those headers are validated.

The workflow cannot combine on_behalf_of=True with schedules. The examples use mistralai.workflows and its client helper, but no minimum SDK version, installation command or complete hardened-deployment configuration is supplied.

Mechanism

At execution time, the platform attaches the triggering user's identity to the workflow context. When an activity requests user credentials, the SDK retrieves an execution token from that context and exchanges it with the platform for a short-lived JWT, a token representing the user. The client adds that JWT to the Authorization header of its outgoing requests and automatically caches and refreshes it.

The JWT is scoped to the execution and can no longer be refreshed after the execution ends. The page does not specify its exact lifetime, token claims or detailed authorization scope. The worker handles the resulting user token without seeing the user's original API key or session token.

Setup

Set on_behalf_of=True in the workflows.workflow.define decorator. Inside an activity, import get_mistral_client from mistralai.workflows.client and call get_mistral_client(use_executor_credentials=True) to create a client acting as the triggering user.

For a call using the worker's own API key, create a client with use_executor_credentials=False, which is also the default. Enabling OBO on the workflow therefore does not by itself make every client use the user's identity. Hardened deployment setup and full registration instructions are outside this page.

Example

The UserSearchWorkflow example accepts a query and passes it to the search_with_user_identity activity. That activity creates a client with use_executor_credentials=True, calls chat.complete_async with model="mistral-medium-latest", sends the query as a user message and returns the first response choice's message content.

Despite the search naming, the example does not implement connector search or document retrieval. Its 30-second start_to_close_timeout configures the activity timeout; it is not a measured response time or the JWT lifetime. The example was not executed, and its output and failure behavior are unverified.

Assessment & evidence

Limitations

Scheduled executions are unsupported because they have no triggering user; the incompatibility is enforced both when the workflow is defined through its decorator and when it is registered. Non-hardened deployments and callers lacking the required user identity are also excluded.

Token refresh stops being available when the execution ends. Exact token expiry behavior, permission boundaries, revocation handling, retries and credential-exchange errors are not described. The page provides no benchmark, security evaluation or runtime results.

Reasoning

The feature is a plausible fit when an interactive workflow needs requests associated with the person who launched it. That assessment follows from the documented identity exchange and per-client credential choice. A workflow requiring unattended scheduled runs cannot use this mode as documented.

The default worker credentials make explicit client configuration a key implementation concern. Developers need to decide which identity each call should use; marking the workflow as OBO and selecting user credentials are separate steps. Identity propagation alone does not establish the exact resources that the user will be authorized to access.

Alternatives

The documented alternative for an individual request is worker authentication through get_mistral_client(use_executor_credentials=False). This uses the worker's own API key and can apply the worker workspace's rate limits. Both clients can coexist within one activity. The page does not compare other workflow platforms or provide an alternative for scheduled execution with user identity.

Evidence

The evidence consists of the complete documentation page at [https://docs.mistral.ai/studio/workflows/building-workflows/on_behalf_of.md], including its warnings, Python examples and constraints. Its captured source revision is sha256:8140b7b8fda743a43656784bcde8d5f987cbc28e9ee980858006344b1ae1c34f.

The page supports descriptions of the documented configuration and intended behavior. It does not supply execution logs, integration results or independent confirmation of those behaviors. The linked hardened-deployment and Mistral-client pages were not assessed.

Access & freshness

Costs

Costs are unknown. The page provides no deployment, subscription, workflow or model API prices, and no usage allowances. It explains that choosing worker credentials can place requests under the worker workspace's rate limits rather than the user's, but this does not establish billing attribution or monetary charges.

Rights

The supplied page contains no license or redistribution terms for its documentation or example code. Reuse permissions and applicable commercial service terms are unknown from this evidence.

Freshness

The documentation was captured on 15 November 2026 at 12:21:59.011 UTC. The page gives no publication date, last-updated date or compatible SDK version. Its example names mistral-medium-latest without identifying the underlying model version. The capture date establishes when this text was obtained, not when the feature last changed.

Actions

Before adopting OBO, confirm that a hardened deployment is available, the intended trigger supplies a full user identity and the workflow does not require schedules. Decide which requests should act as the user and which should use worker credentials.

In a development environment, verify the resulting identity and resource access for each client, rejection of missing identity information, and credential behavior around execution completion. Obtain the missing deployment instructions, SDK compatibility information, pricing and usage terms before relying on the feature operationally.

Evidence for this report

selected-page.txtselected · checked 2026-11-15