Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User email is empty #1017

Open
loeffel-io opened this issue Jan 12, 2022 · 1 comment
Open

User email is empty #1017

loeffel-io opened this issue Jan 12, 2022 · 1 comment

Comments

@loeffel-io
Copy link

switch eventsApiEvent.Type {
	case slackevents.CallbackEvent:
		innerEvent := eventsApiEvent.InnerEvent
		switch eventData := innerEvent.Data.(type) {
		case *slackevents.TeamJoinEvent:
                    log.Printf("%+v", eventData.User.Profile.Email) // empty

everything else looks fine

manifest.yaml

_metadata:
  major_version: 1
  minor_version: 1
display_information:
  name: CRM
features:
  bot_user:
    display_name: BotCRM
    always_online: true
oauth_config:
  scopes:
    bot:
      - users:read
      - users:read.email
      - users.profile:read
settings:
  event_subscriptions:
    request_url: xxx
    bot_events:
      - team_join
  org_deploy_enabled: false
  socket_mode_enabled: false
  token_rotation_enabled: false

Versions

  • Go: go version go1.17.5 darwin/amd64
  • slack-go/slack: 0.10.1
@loeffel-io
Copy link
Author

fyi: api.GetUserInfo contains the profile email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants