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.
Case 1: Invite new slack users to Miro team
Case 2: Remove from Miro team that left Slack channel
git clone https://github.com/miroapp/app-examples.git
cd app-examples/automate-user-management
npm install
cp .env.example .env
-
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
-
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
npm run start
npx ngrok http 8000