Skip to content

Latest commit

 

History

History

enterprise-team-management

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Miro Enterprise Team Management

Manage teams and organizations within Miro using Miro's REST API. This app uses Node.js.

ℹ️ This example requires an Enterprise plan subscription and an Enterprise Team account.

👨🏻‍💻 App Demo

ent_team_management_demo.mp4

📒 Table of Contents

⚙️ Included Features

🛠️ Tools and Technologies

✅ Prerequisites

🏃🏽‍♂️ Run the app locally

  1. Open the project and create a .env file in the root directory
  2. Inside the .env file, specify variable ACCESS_TOKEN and pass the value of the token generated in Step 5.

    ⚠️ You will need to install your app under an Enterprise team in order to access Miro's Enterprise APIs.⚠️

ACCESS_TOKEN="{YOUR_ACCESS_TOKEN}"
  1. Run npm install to install dependencies.
  2. Open the app manifest editor by clicking Edit in Manifest. \

In the app manifest editor, configure the app as follows and then click save:

# See https://developers.miro.com/docs/app-manifest on how to use this
appName: Enterprise Team Management
sdkVersion: SDK_V2
sdkUri: http://localhost:3000
scopes:
  - boards:read
  - boards:write
  - organizations:read
  - organizations:teams:write
  - organizations:teams:read
  - team:read
  - team:write
  1. Go back to your app home page, and under the Permissions section, you will see a blue button that says Install app and get OAuth token. Click that button. Then click on Add as shown in the video below. This will generate an access_token.

⚠️ We recommend to install your app on an Enterprise Developer Team while you are developing or testing apps for use with Enterprise endpoints.⚠️

install-drag-and-drop.mov
  1. Paste the value of the access_token in the variable ACCESS_TOKEN, in the .env file created in Step 2.
  2. Open the script in your code editor
  3. Open your terminal and run node index.js

    Your script will run using the access_token provided by your Enterprise installation in Step 5 and the terminal will output the team management details fulfilled by Miro's REST APIs.

🗂️ Folder structure

.
├── index.js <-- NodeJS script
├── .env <-- create this when you open the script

🫱🏻‍🫲🏽 Contributing

If you want to contribute to this example, or any other Miro Open Source project, please review Miro's contributing guide.

🪪 License

MIT License.