0
Let API keys and applications send from workspace-shared mailboxes
Source: twentyhq/twenty#30849 · opened by @russ666
Why A mailbox shared with the workspace (scope WORKSPACE: a shared account, or an email group) belongs to the whole workspace, and workflows and agents already send from it without a user. The sendEmail mutation and myConnectedAccounts admit API keys and application tokens in their access policy, but @AuthUserWorkspaceId() then refuses every token without a user: "This endpoint requires a token bound to a user workspace." So an application's cron or database-event function, or an API key, cannot send from the workspace's shared inbox: an order update to a customer from support@, say, or an alert to the team. What • sendEmail and myConnectedAccounts accept a caller without a user. • Such a caller can use the WORKSPACE-scope accounts alone. isConnectedAccountUsableByCaller and its SQL counterpart never match a member's own account without a user. TypeORM drops an undefined condition, so the owner branch of the where clause would otherwise match e…
No pledges yet. Be the first to back this.
Comments
Similar requests
Request to sync shared mailboxes
11 votes · 0 comments
Synced messages only store a plain-text extract; HTML-only emails end up empty or truncated
2 votes · 0 comments
[Workflow] API keys variables
1 vote · 0 comments
I created a Twenty MCP Server - Looking for Feedback!
3 votes · 0 comments
Workflow step mutations are unreachable via workspace API keys (`Forbidden resource`); also hidden from GraphQL introspection
0 votes · 0 comments
No comments yet.