> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fireflies.ai: Fireflies Set User Role

> Change a Fireflies team member's role. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Change a Fireflies team member's role.

> [!NOTE]
>
> Tool ID: `fireflies_set_user_role`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'fireflies_set_user_role',
  {
    "user_id": "user_123",
    "role": "admin"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute fireflies_set_user_role --input '{
  "user_id": "user_123",
  "role": "admin"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": {
      "setUserRole": {
        "user_id": "user_123",
        "email": "jane.doe@example.com",
        "name": "Example"
      }
    }
  }
}
```

Use `deepline describe fireflies_set_user_role --json` for the latest machine-readable contract.

## Input reference

Change a team member role. Requires elevated Fireflies privileges.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.user_id` | `string` | Yes | — | — |
| `payload.role` | `"admin" \| "user"` | Yes | — | Allowed: `admin`, `user`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Change a team member role. Requires elevated Fireflies privileges.",
    "properties": {
      "user_id": {
        "type": "string"
      },
      "role": {
        "type": "string",
        "enum": [
          "admin",
          "user"
        ]
      }
    },
    "required": [
      "user_id",
      "role"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | — |
| `result.data.data.setUserRole` | `object` | Yes | — | — |
| `result.data.data.setUserRole.user_id` | `string \| null` | No | — | — |
| `result.data.data.setUserRole.email` | `string \| null` | No | — | Format: `email`. |
| `result.data.data.setUserRole.name` | `string \| null` | No | — | — |
| `result.data.data.setUserRole.is_admin` | `boolean \| null` | No | — | — |
| `result.data.errors` | `array` | No | — | — |
| `result.data.errors[].message` | `string` | Yes | — | — |
| `result.data.errors[].extensions` | `record` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "setUserRole": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "email"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "is_admin": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "setUserRole"
            ],
            "additionalProperties": false
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                },
                "extensions": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "required": [
                "message"
              ],
              "additionalProperties": true
            }
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Fireflies.ai provider guide](https://deepline.com/docs/providers/fireflies/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.