FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests