From 161311c1d10335d7554367d66b5be92d7800d18e Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 2 Mar 2021 13:02:03 -0600 Subject: [PATCH 1/2] Update README.md add Slack scope: `users:read.email` --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0ec3dd2..d82b393 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ The tap requires a [Slack API token](https://github.com/slackapi/python-slackcli - `usergroups:read` - `users.profile:read` - `users:read` + - `users:read.email` Create a config file containing the API token and a start date, e.g.: From 67f1278fad92f8a90275e9c2fcedddd71b2af817 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 2 Mar 2021 13:03:22 -0600 Subject: [PATCH 2/2] add email to users.json --- tap_slack/schemas/users.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tap_slack/schemas/users.json b/tap_slack/schemas/users.json index bf508be..3d1a618 100644 --- a/tap_slack/schemas/users.json +++ b/tap_slack/schemas/users.json @@ -56,6 +56,20 @@ }, "has_2fa": { "type": ["null", "boolean"] + }, + "profile": { + "type": [ + "null", + "object" + ], + "properties": { + "email": { + "type": [ + "null", + "string" + ] + } + } } } }