diff --git a/apps/docs/content/docs/en/tools/slack.mdx b/apps/docs/content/docs/en/tools/slack.mdx index 7ecfe09fe0..f89be8ef04 100644 --- a/apps/docs/content/docs/en/tools/slack.mdx +++ b/apps/docs/content/docs/en/tools/slack.mdx @@ -590,6 +590,7 @@ List all users in a Slack workspace. Returns user profiles with names and avatar | ↳ `name` | string | Username \(handle\) | | ↳ `real_name` | string | Full real name | | ↳ `display_name` | string | Display name shown in Slack | +| ↳ `email` | string | Email address \(requires users:read.email scope\) | | ↳ `is_bot` | boolean | Whether the user is a bot | | ↳ `is_admin` | boolean | Whether the user is a workspace admin | | ↳ `is_owner` | boolean | Whether the user is the workspace owner | @@ -629,6 +630,7 @@ Get detailed information about a specific Slack user by their user ID. | ↳ `title` | string | Job title | | ↳ `phone` | string | Phone number | | ↳ `skype` | string | Skype handle | +| ↳ `email` | string | Email address \(requires users:read.email scope\) | | ↳ `is_bot` | boolean | Whether the user is a bot | | ↳ `is_admin` | boolean | Whether the user is a workspace admin | | ↳ `is_owner` | boolean | Whether the user is the workspace owner | diff --git a/apps/sim/lib/oauth/oauth.ts b/apps/sim/lib/oauth/oauth.ts index 0e0221d743..4eebc0f584 100644 --- a/apps/sim/lib/oauth/oauth.ts +++ b/apps/sim/lib/oauth/oauth.ts @@ -639,6 +639,7 @@ export const OAUTH_PROVIDERS: Record = { 'im:history', 'im:read', 'users:read', + 'users:read.email', 'files:write', 'files:read', 'canvases:write', diff --git a/apps/sim/lib/oauth/utils.ts b/apps/sim/lib/oauth/utils.ts index 6cdee0220e..5b8c23d7ea 100644 --- a/apps/sim/lib/oauth/utils.ts +++ b/apps/sim/lib/oauth/utils.ts @@ -269,6 +269,7 @@ export const SCOPE_DESCRIPTIONS: Record = { 'im:history': 'Read direct message history', 'im:read': 'View direct message channels', 'users:read': 'View workspace users', + 'users:read.email': 'View user email addresses', 'files:write': 'Upload files', 'files:read': 'Download and read files', 'canvases:write': 'Create canvas documents', diff --git a/apps/sim/tools/slack/get_user.ts b/apps/sim/tools/slack/get_user.ts index bc0d803e6b..e63915f844 100644 --- a/apps/sim/tools/slack/get_user.ts +++ b/apps/sim/tools/slack/get_user.ts @@ -85,6 +85,7 @@ export const slackGetUserTool: ToolConfig