Run tools with each end user's own credentials
By default a thunk's tools act as you, the thunk owner (see User identity during agent execution). Some connections should act as the person the thunk is working for instead. An HR chat app should read that employee's records, and a mailbox assistant should send mail as the person asking. For these, turn on Use each end user's own credentials. Each end user then signs in with their own account once, and the connection's tools act as them, with only the access their own account has.
This works for:
MCP and REST API connections that sign in with OAuth.
Google Drive and Microsoft 365.
Turn it on for a connection
Set it on the connection when the connection should always act as the end user:
Open your Account page and select the connection under Connections.
Turn on Use each end user's own credentials.
Every thunk that uses the connection then runs its tools as the end user. That includes thunks that reach it through a plug-in connection. In those thunks' Connections pane the switch shows as on and locked, with Set on the connection. A plug-in binding to the connection shows Runs with each end user's own credentials (set on the connection). To change it, go back to the connection's page.
Turn it on in one thunk
To have only one thunk act as its end users, leave the connection alone and set it in the thunk:
In the thunk's Connections pane, select the connection.
Turn on Use each end user's own credentials.
Other thunks that use the same connection keep acting as you.
Who it applies to
The setting applies to people who use the thunk with the End User role: in the hosted Chat UI, through the conversational REST API, or by calling the thunk's tools from an AI assistant over MCP.
When there is no end user, for example when you run a work item yourself, the tools use your credentials as usual.
What the end user sees
An end user authorizes each thunk separately. Google Drive and Microsoft 365 are the exception: those sign in with the person's own Google or Microsoft account, and the same account serves every thunk.
Hosted Chat UI. When they send a message, a Connect your accounts dialog lists each connection that needs their sign-in, with an Authorize button. They authorize each one, come back, and send again. If a plug-in connection picks a connection or thunk partway through the conversation, the agent's message asks them to sign in, with the same Authorize buttons.
AI assistant over MCP. The tool does not run. Its result lists each service with a link. The person opens each link in a browser, signs in to Thunk.AI as themselves, approves access, and calls the tool again.
Conversational REST API. The message is refused with status
403. The body hasreasonset toend_user_oauth_requiredand aconnectionslist, each entry with adisplayNameand anauthorizeUrlto send the person to.
End users can review and revoke what they have authorized under Authorized Thunks in their account. An authorization granted through a chat app shows the app it was granted through. See Manage OAuth credentials and authorized thunks.
See and revoke end users' authorizations
For an MCP or REST API connection that acts as the end user, owners and admins see a line under the switch in the thunk's Connections pane, such as 3 end users have authorized. Select Manage to see each connection, end user and date, and Revoke one. The end user is asked to authorize again the next time the thunk needs it.
Google Drive and Microsoft 365 have no such list: they use each person's own account, which you cannot revoke for them.
