redbadger / badger-map

Where do badgers live?
Apache License 2.0
3 stars 0 forks source link

Slack integration #11

Open robbiemccorkell opened 4 years ago

robbiemccorkell commented 4 years ago

It would be cool to pull slack profile pictures for the pins, and link directly to a DM chat on profile names.

Since we don't have SSO on our slack instance this would require making a separate slack app integration, but since we have everybody's usernames might not be that hard.

charypar commented 4 years ago

Sounds great! Any pointers to what might be involved in setting this up?

We do use google accounts to sign-in to Slack, it may be possible to reuse the authentication context 🤔

samwhite commented 4 years ago

We don't have access to the SCIM API as it's only available on Plus/Enterprise plans -- however the regular users.list API combined by searching via email address could do it? https://api.slack.com/methods/users.list

charypar commented 4 years ago

The spreadsheet has slack handles, so finding the user should be easy. The other question is whether there’s a simple way to initiate a conversation from outside, like a slackto: link

samwhite commented 4 years ago

Ah, that's a more direct way to filter then!

Deep linking to a DM is easy: slack://user?team={TEAM_ID}&id={USER_ID}

(TEAM_ID we can fetch, it'll be constant for the RB slack)

On Mon, 6 Apr 2020 at 17:46, Viktor Charypar notifications@github.com wrote:

The spreadsheet has slack handles, so finding the user should be easy. The other question is whether there’s a simple way to initiate a conversation from outside, like a slackto: link

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/redbadger/badger-map/issues/11#issuecomment-609908289, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABL6V24VYW7TRRBHCRF5IKTRLIBNBANCNFSM4LVQHZNQ .

charypar commented 4 years ago

Tried the direct links a bunch and couldn't get it to work with just links. Seems like Slack app would be the only way.