bodgery / bodgery-member-api

1 stars 1 forks source link

Implement call to sign up member for Slack #10

Closed frezik closed 5 years ago

frezik commented 5 years ago

Implement /v1/member/:member_id/slack.

frezik commented 5 years ago

There may be a difficulty with this one. There is an undocumented API (users.admin.invite) that can invite new users. Besides being undocumented, it also uses deprecated authentication tokens.

The SCIM API can add a new user directly. This includes setting their password, so we'd have to get that to the new member by some means. This seems sub-optimal.

There is also the matter of testing it. This would normally be a matter of creating a test Slack workspace as a sandbox, but the SCIM API is only available to Slack+ (i.e., paid) users. IIRC, the Bodgery's own workspace is a Plus account, but we wouldn't be able to setup a sandbox without paying.

frezik commented 5 years ago

Alternatively, once we have enough GMail integration to send an email, we could send the new member an invite link. Those can be managed at:

https://thebodgery.slack.com/admin/shared_invites

(You will need to be an admin of the Bodgery's workspace to access this link.)

frezik commented 5 years ago

Unless I'm missing it in the API list (https://api.slack.com/methods), it looks like we can't even programmatically generate an invite link. So we'll have to pass on this issue unless we get the higher paid tier of Slack (unlikely) or Slack adds it to their API.