Skip to content

Latest commit

 

History

History
 
 

automate-user-management

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Intro

This example explains how to add and remove members from your team, based on data from an external source.

For example, add new Miro user to a team when new mew user joins a specific slack channel, and remove a user from Miro team when a user leaves Slack channel.

Use case data flow

Case 1: Invite new slack users to Miro team

Invite new slack users

Case 2: Remove from Miro team that left Slack channel

Remove from Miro team

Preparation

Step 1. Clone the repo and install the dependencies

git clone https://github.com/miroapp/app-examples.git
cd app-examples/automate-user-management
npm install

Step 2. Copy .env.example file

cp .env.example .env

Step 3. Create App in Slack

  • This guide shows you how to create app.

  • Select scopes: channels:read, groups:read, users:read, users:read.email

  • Verify Request URL

  • Enable Events: member_joined_channel, member_left_channel

  • Install the application and add the received Slack OAuth token in the .env file

Step 4. Create App in Miro

  • This guide shows you how to do it.

  • Scopes used in this example: team:read, team:write

  • Install the application and add the received Miro OAuth token in the .env file

Step 5. Start Node server locally

npm run start

Step 6. Expose a local web server to the internet

npx ngrok http 8000