View as Markdown
Fireflies icon

Fireflies ACTION

Set User Role

Promote a team member to admin or demote an admin to a regular user. The team must always retain at least one admin — attempting to demote the last remaining admin fails with an admin_must_exist error. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Fireflies account once, then configure and run Set User Role from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "fireflies-set-user-role",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fireflies: { authProvisionId: "apn_xxxxxxx" },
    userId: "User ID",
    role: "Role",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Set User Role inputs
Property Type Description
userId User ID string
The user whose role should change. Use List User ID Options to look up a user ID.
Required Dynamic
role Role string
The role to assign to the user. Accepted values are admin or user.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
fireflies-set-user-role
Version
0.0.2
App
Fireflies
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes