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

# grafana-organization

> Grafana Organization

**Server path:** `/grafana-organization` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                                                            | Description                                            |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [`grafana_organization_add_org_invite`](#grafana_organization_add_org_invite)                                                   | Add invite.                                            |
| [`grafana_organization_add_org_user_to_current_org`](#grafana_organization_add_org_user_to_current_org)                         | Add a new user to the current organization.            |
| [`grafana_organization_add_team_member`](#grafana_organization_add_team_member)                                                 | Add Team Member.                                       |
| [`grafana_organization_create_service_account`](#grafana_organization_create_service_account)                                   | Create service account                                 |
| [`grafana_organization_create_team`](#grafana_organization_create_team)                                                         | Add Team.                                              |
| [`grafana_organization_create_token`](#grafana_organization_create_token)                                                       | CreateNewToken adds a token to a service account       |
| [`grafana_organization_delete_service_account`](#grafana_organization_delete_service_account)                                   | Delete service account                                 |
| [`grafana_organization_delete_team_by_id`](#grafana_organization_delete_team_by_id)                                             | Delete Team By ID.                                     |
| [`grafana_organization_delete_token`](#grafana_organization_delete_token)                                                       | DeleteToken deletes service account tokens             |
| [`grafana_organization_get_current_org`](#grafana_organization_get_current_org)                                                 | Get current Organization.                              |
| [`grafana_organization_get_current_org_quota`](#grafana_organization_get_current_org_quota)                                     | Fetch Organization quota.                              |
| [`grafana_organization_get_org_preferences`](#grafana_organization_get_org_preferences)                                         | Get Current Org Prefs.                                 |
| [`grafana_organization_get_org_users_for_current_org`](#grafana_organization_get_org_users_for_current_org)                     | Get all users within the current organization.         |
| [`grafana_organization_get_org_users_for_current_org_lookup`](#grafana_organization_get_org_users_for_current_org_lookup)       | Get all users within the current organization (lookup) |
| [`grafana_organization_get_pending_org_invites`](#grafana_organization_get_pending_org_invites)                                 | Get pending invites.                                   |
| [`grafana_organization_get_team_by_id`](#grafana_organization_get_team_by_id)                                                   | Get Team By ID.                                        |
| [`grafana_organization_get_team_members`](#grafana_organization_get_team_members)                                               | Get Team Members.                                      |
| [`grafana_organization_get_team_preferences`](#grafana_organization_get_team_preferences)                                       | Get Team Preferences.                                  |
| [`grafana_organization_get_user_by_id`](#grafana_organization_get_user_by_id)                                                   | Get user by id.                                        |
| [`grafana_organization_get_user_by_login_or_email`](#grafana_organization_get_user_by_login_or_email)                           | Get user by login or email.                            |
| [`grafana_organization_get_user_org_list`](#grafana_organization_get_user_org_list)                                             | Get organizations for user.                            |
| [`grafana_organization_get_user_teams`](#grafana_organization_get_user_teams)                                                   | Get teams for user.                                    |
| [`grafana_organization_list_tokens`](#grafana_organization_list_tokens)                                                         | Get service account tokens                             |
| [`grafana_organization_patch_org_preferences`](#grafana_organization_patch_org_preferences)                                     | Patch Current Org Prefs.                               |
| [`grafana_organization_remove_org_user_for_current_org`](#grafana_organization_remove_org_user_for_current_org)                 | Delete user in current organization.                   |
| [`grafana_organization_remove_team_member`](#grafana_organization_remove_team_member)                                           | Remove Member From Team.                               |
| [`grafana_organization_retrieve_service_account`](#grafana_organization_retrieve_service_account)                               | Get single serviceaccount by Id                        |
| [`grafana_organization_revoke_invite`](#grafana_organization_revoke_invite)                                                     | Revoke invite.                                         |
| [`grafana_organization_search_org_service_accounts_with_paging`](#grafana_organization_search_org_service_accounts_with_paging) | Search service accounts with paging                    |
| [`grafana_organization_search_teams`](#grafana_organization_search_teams)                                                       | Team Search With Paging.                               |
| [`grafana_organization_search_users`](#grafana_organization_search_users)                                                       | Get users.                                             |
| [`grafana_organization_search_users_with_paging`](#grafana_organization_search_users_with_paging)                               | Get users with paging.                                 |
| [`grafana_organization_set_team_memberships`](#grafana_organization_set_team_memberships)                                       | Set team memberships.                                  |
| [`grafana_organization_update_current_org`](#grafana_organization_update_current_org)                                           | Update current Organization.                           |
| [`grafana_organization_update_current_org_address`](#grafana_organization_update_current_org_address)                           | Update current Organization's address.                 |
| [`grafana_organization_update_org_preferences`](#grafana_organization_update_org_preferences)                                   | Update Current Org Prefs.                              |
| [`grafana_organization_update_org_user_for_current_org`](#grafana_organization_update_org_user_for_current_org)                 | Updates the given user.                                |
| [`grafana_organization_update_service_account`](#grafana_organization_update_service_account)                                   | Update service account                                 |
| [`grafana_organization_update_team`](#grafana_organization_update_team)                                                         | Update Team.                                           |
| [`grafana_organization_update_team_member`](#grafana_organization_update_team_member)                                           | Update Team Member.                                    |
| [`grafana_organization_update_team_preferences`](#grafana_organization_update_team_preferences)                                 | Update Team Preferences.                               |
| [`grafana_organization_update_user`](#grafana_organization_update_user)                                                         | Update user.                                           |

***

## grafana\_organization\_add\_org\_invite

Add invite.

**Parameters:**

| Parameter      | Type    | Required | Default | Description    |
| -------------- | ------- | -------- | ------- | -------------- |
| `loginOrEmail` | string  | No       | —       | Login Or Email |
| `name`         | string  | No       | —       | The name value |
| `role`         | string  | No       | —       | The role value |
| `sendEmail`    | boolean | No       | —       | Send Email     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "loginOrEmail": {
        "type": "string",
        "description": "Login Or Email"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "role": {
        "type": "string",
        "description": "The role value",
        "enum": [
          "None",
          "Viewer",
          "Editor",
          "Admin"
        ]
      },
      "sendEmail": {
        "type": "boolean",
        "description": "Send Email"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_add\_org\_user\_to\_current\_org

Add a new user to the current organization.

**Parameters:**

| Parameter      | Type   | Required | Default | Description    |
| -------------- | ------ | -------- | ------- | -------------- |
| `loginOrEmail` | string | No       | —       | Login Or Email |
| `role`         | string | No       | —       | The role value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "loginOrEmail": {
        "type": "string",
        "description": "Login Or Email"
      },
      "role": {
        "type": "string",
        "description": "The role value",
        "enum": [
          "None",
          "Viewer",
          "Editor",
          "Admin"
        ]
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_add\_team\_member

Add Team Member.

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `team_id` | string  | Yes      | —       | Team Id     |
| `userId`  | integer | Yes      | —       | User Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "userId": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "team_id",
      "userId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_create\_service\_account

Create service account

**Parameters:**

| Parameter    | Type    | Required | Default | Description    |
| ------------ | ------- | -------- | ------- | -------------- |
| `isDisabled` | boolean | No       | —       | Is Disabled    |
| `name`       | string  | No       | —       | The name value |
| `role`       | string  | No       | —       | The role value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "isDisabled": {
        "type": "boolean",
        "description": "Is Disabled"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "role": {
        "type": "string",
        "description": "The role value",
        "enum": [
          "None",
          "Viewer",
          "Editor",
          "Admin"
        ]
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_create\_team

Add Team.

**Parameters:**

| Parameter | Type   | Required | Default | Description     |
| --------- | ------ | -------- | ------- | --------------- |
| `email`   | string | No       | —       | The email value |
| `name`    | string | Yes      | —       | The name value  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "email": {
        "type": "string",
        "description": "The email value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_create\_token

CreateNewToken adds a token to a service account

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `serviceAccountId` | integer | Yes      | —       | Service Account Id |
| `name`             | string  | No       | —       | The name value     |
| `secondsToLive`    | integer | No       | —       | Seconds To Live    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "serviceAccountId": {
        "type": "integer",
        "description": "Service Account Id"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "secondsToLive": {
        "type": "integer",
        "description": "Seconds To Live"
      }
    },
    "required": [
      "PCID",
      "serviceAccountId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_delete\_service\_account

Delete service account

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `serviceAccountId` | integer | Yes      | —       | Service Account Id |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "serviceAccountId": {
        "type": "integer",
        "description": "Service Account Id"
      }
    },
    "required": [
      "PCID",
      "serviceAccountId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_delete\_team\_by\_id

Delete Team By ID.

**Parameters:**

| Parameter | Type   | Required | Default | Description |
| --------- | ------ | -------- | ------- | ----------- |
| `team_id` | string | Yes      | —       | Team Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_delete\_token

DeleteToken deletes service account tokens

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `tokenId`          | integer | Yes      | —       | Token Id           |
| `serviceAccountId` | integer | Yes      | —       | Service Account Id |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "tokenId": {
        "type": "integer",
        "description": "Token Id"
      },
      "serviceAccountId": {
        "type": "integer",
        "description": "Service Account Id"
      }
    },
    "required": [
      "PCID",
      "tokenId",
      "serviceAccountId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_current\_org

Get current Organization.

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_current\_org\_quota

Fetch Organization quota.

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_org\_preferences

Get Current Org Prefs.

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_org\_users\_for\_current\_org

Get all users within the current organization.

**Parameters:**

| Parameter | Type    | Required | Default | Description                         |
| --------- | ------- | -------- | ------- | ----------------------------------- |
| `query`   | string  | No       | —       | Search query string                 |
| `limit`   | integer | No       | —       | Maximum number of results to return |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "query": {
        "type": "string",
        "description": "Search query string"
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of results to return"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_org\_users\_for\_current\_org\_lookup

Get all users within the current organization (lookup)

**Parameters:**

| Parameter | Type    | Required | Default | Description                         |
| --------- | ------- | -------- | ------- | ----------------------------------- |
| `query`   | string  | No       | —       | Search query string                 |
| `limit`   | integer | No       | —       | Maximum number of results to return |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "query": {
        "type": "string",
        "description": "Search query string"
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of results to return"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_pending\_org\_invites

Get pending invites.

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_team\_by\_id

Get Team By ID.

**Parameters:**

| Parameter       | Type    | Required | Default | Description             |
| --------------- | ------- | -------- | ------- | ----------------------- |
| `team_id`       | string  | Yes      | —       | Team Id                 |
| `accesscontrol` | boolean | No       | —       | The accesscontrol value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "accesscontrol": {
        "type": "boolean",
        "description": "The accesscontrol value"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_team\_members

Get Team Members.

**Parameters:**

| Parameter | Type   | Required | Default | Description |
| --------- | ------ | -------- | ------- | ----------- |
| `team_id` | string | Yes      | —       | Team Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_team\_preferences

Get Team Preferences.

**Parameters:**

| Parameter | Type   | Required | Default | Description |
| --------- | ------ | -------- | ------- | ----------- |
| `team_id` | string | Yes      | —       | Team Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_user\_by\_id

Get user by id.

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `user_id` | integer | Yes      | —       | User Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_user\_by\_login\_or\_email

Get user by login or email.

**Parameters:**

| Parameter      | Type   | Required | Default | Description              |
| -------------- | ------ | -------- | ------- | ------------------------ |
| `loginOrEmail` | string | Yes      | —       | loginOrEmail of the user |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "loginOrEmail": {
        "type": "string",
        "description": "loginOrEmail of the user"
      }
    },
    "required": [
      "PCID",
      "loginOrEmail"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_user\_org\_list

Get organizations for user.

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `user_id` | integer | Yes      | —       | User Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_get\_user\_teams

Get teams for user.

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `user_id` | integer | Yes      | —       | User Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_list\_tokens

Get service account tokens

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `serviceAccountId` | integer | Yes      | —       | Service Account Id |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "serviceAccountId": {
        "type": "integer",
        "description": "Service Account Id"
      }
    },
    "required": [
      "PCID",
      "serviceAccountId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_patch\_org\_preferences

Patch Current Org Prefs.

**Parameters:**

| Parameter          | Type    | Required | Default | Description                                                                          |
| ------------------ | ------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `homeDashboardId`  | integer | No       | —       | The numerical :id of a favorited dashboard                                           |
| `homeDashboardUID` | string  | No       | —       | Home Dashboard UID                                                                   |
| `language`         | string  | No       | —       | The language value                                                                   |
| `navbar`           | object  | No       | —       | The navbar value                                                                     |
| `queryHistory`     | object  | No       | —       | Query History                                                                        |
| `regionalFormat`   | string  | No       | —       | Regional Format                                                                      |
| `theme`            | string  | No       | —       | The theme value                                                                      |
| `timezone`         | string  | No       | —       | Any IANA timezone string (e.g. America/New\_York), 'utc', 'browser', or empty string |
| `weekStart`        | string  | No       | —       | Week Start                                                                           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "homeDashboardId": {
        "type": "integer",
        "description": "The numerical :id of a favorited dashboard"
      },
      "homeDashboardUID": {
        "type": "string",
        "description": "Home Dashboard UID"
      },
      "language": {
        "type": "string",
        "description": "The language value"
      },
      "navbar": {
        "type": "object",
        "description": "The navbar value",
        "properties": {
          "bookmarkUrls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Bookmark Urls"
          }
        }
      },
      "queryHistory": {
        "type": "object",
        "description": "Query History",
        "properties": {
          "homeTab": {
            "type": "string",
            "description": "Home Tab"
          }
        }
      },
      "regionalFormat": {
        "type": "string",
        "description": "Regional Format"
      },
      "theme": {
        "type": "string",
        "description": "The theme value",
        "enum": [
          "light",
          "dark"
        ]
      },
      "timezone": {
        "type": "string",
        "description": "Any IANA timezone string (e.g. America/New_York), 'utc', 'browser', or empty string"
      },
      "weekStart": {
        "type": "string",
        "description": "Week Start"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_remove\_org\_user\_for\_current\_org

Delete user in current organization.

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `user_id` | integer | Yes      | —       | User Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_remove\_team\_member

Remove Member From Team.

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `team_id` | string  | Yes      | —       | Team Id     |
| `user_id` | integer | Yes      | —       | User Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      }
    },
    "required": [
      "PCID",
      "team_id",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_retrieve\_service\_account

Get single serviceaccount by Id

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `serviceAccountId` | integer | Yes      | —       | Service Account Id |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "serviceAccountId": {
        "type": "integer",
        "description": "Service Account Id"
      }
    },
    "required": [
      "PCID",
      "serviceAccountId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_revoke\_invite

Revoke invite.

**Parameters:**

| Parameter         | Type   | Required | Default | Description     |
| ----------------- | ------ | -------- | ------- | --------------- |
| `invitation_code` | string | Yes      | —       | Invitation Code |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "invitation_code": {
        "type": "string",
        "description": "Invitation Code"
      }
    },
    "required": [
      "PCID",
      "invitation_code"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_search\_org\_service\_accounts\_with\_paging

Search service accounts with paging

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                                                                                                    |
| --------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `Disabled`      | boolean | No       | —       | The disabled value                                                                                                             |
| `expiredTokens` | boolean | No       | —       | Expired Tokens                                                                                                                 |
| `query`         | string  | No       | —       | It will return results where the query value is contained in one of the name. Query values with spaces need to be URL encoded. |
| `perpage`       | integer | No       | —       | The default value is 1000.                                                                                                     |
| `page`          | integer | No       | —       | The default value is 1.                                                                                                        |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "Disabled": {
        "type": "boolean",
        "description": "The disabled value"
      },
      "expiredTokens": {
        "type": "boolean",
        "description": "Expired Tokens"
      },
      "query": {
        "type": "string",
        "description": "It will return results where the query value is contained in one of the name. Query values with spaces need to be URL encoded."
      },
      "perpage": {
        "type": "integer",
        "description": "The default value is 1000."
      },
      "page": {
        "type": "integer",
        "description": "The default value is 1."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_search\_teams

Team Search With Paging.

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                                                                                                                                                                                     |
| --------------- | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `page`          | integer | No       | —       | Page number for pagination                                                                                                                                                                                      |
| `perpage`       | integer | No       | —       | Number of items per page The totalCount field in the response can be used for pagination list E.g. if totalCount is equal to 100 teams and the perpage parameter is set to 10 then there are 10 pages of teams. |
| `name`          | string  | No       | —       | The name value                                                                                                                                                                                                  |
| `query`         | string  | No       | —       | If set it will return results where the query value is contained in the name field. Query values with spaces need to be URL encoded.                                                                            |
| `accesscontrol` | boolean | No       | —       | The accesscontrol value                                                                                                                                                                                         |
| `sort`          | string  | No       | —       | Sort order for results                                                                                                                                                                                          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination"
      },
      "perpage": {
        "type": "integer",
        "description": "Number of items per page The totalCount field in the response can be used for pagination list E.g. if totalCount is equal to 100 teams and the perpage parameter is set to 10 then there are 10 pages of teams."
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "query": {
        "type": "string",
        "description": "If set it will return results where the query value is contained in the name field. Query values with spaces need to be URL encoded."
      },
      "accesscontrol": {
        "type": "boolean",
        "description": "The accesscontrol value"
      },
      "sort": {
        "type": "string",
        "description": "Sort order for results"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_search\_users

Get users.

**Parameters:**

| Parameter | Type    | Required | Default | Description                                          |
| --------- | ------- | -------- | ------- | ---------------------------------------------------- |
| `perpage` | integer | No       | —       | Limit the maximum number of users to return per page |
| `page`    | integer | No       | —       | Page index for starting fetching users               |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "perpage": {
        "type": "integer",
        "description": "Limit the maximum number of users to return per page"
      },
      "page": {
        "type": "integer",
        "description": "Page index for starting fetching users"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_search\_users\_with\_paging

Get users with paging.

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                                                          |
| --------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `perpage` | integer | No       | —       | Limit the maximum number of users to return per page                                                 |
| `page`    | integer | No       | —       | Page index for starting fetching users                                                               |
| `query`   | string  | No       | —       | Filter users by login, email, name, or last seen before a certain date                               |
| `sort`    | string  | No       | —       | Order results by login, email or name fields. "login", "-login", "email", "-email", "name", "-name". |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "perpage": {
        "type": "integer",
        "description": "Limit the maximum number of users to return per page"
      },
      "page": {
        "type": "integer",
        "description": "Page index for starting fetching users"
      },
      "query": {
        "type": "string",
        "description": "Filter users by login, email, name, or last seen before a certain date"
      },
      "sort": {
        "type": "string",
        "description": "Order results by login, email or name fields. \"login\", \"-login\", \"email\", \"-email\", \"name\", \"-name\"."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_set\_team\_memberships

Set team memberships.

**Parameters:**

| Parameter | Type      | Required | Default | Description       |
| --------- | --------- | -------- | ------- | ----------------- |
| `team_id` | string    | Yes      | —       | Team Id           |
| `admins`  | string\[] | No       | —       | The admins value  |
| `members` | string\[] | No       | —       | The members value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "admins": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The admins value"
      },
      "members": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The members value"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_current\_org

Update current Organization.

**Parameters:**

| Parameter | Type   | Required | Default | Description    |
| --------- | ------ | -------- | ------- | -------------- |
| `name`    | string | No       | —       | The name value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_current\_org\_address

Update current Organization's address.

**Parameters:**

| Parameter  | Type   | Required | Default | Description        |
| ---------- | ------ | -------- | ------- | ------------------ |
| `address1` | string | No       | —       | The address1 value |
| `address2` | string | No       | —       | The address2 value |
| `city`     | string | No       | —       | The city value     |
| `country`  | string | No       | —       | The country value  |
| `state`    | string | No       | —       | The state value    |
| `zipcode`  | string | No       | —       | The zipcode value  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "address1": {
        "type": "string",
        "description": "The address1 value"
      },
      "address2": {
        "type": "string",
        "description": "The address2 value"
      },
      "city": {
        "type": "string",
        "description": "The city value"
      },
      "country": {
        "type": "string",
        "description": "The country value"
      },
      "state": {
        "type": "string",
        "description": "The state value"
      },
      "zipcode": {
        "type": "string",
        "description": "The zipcode value"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_org\_preferences

Update Current Org Prefs.

**Parameters:**

| Parameter          | Type    | Required | Default | Description                                                                          |
| ------------------ | ------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `homeDashboardId`  | integer | No       | —       | The numerical :id of a favorited dashboard                                           |
| `homeDashboardUID` | string  | No       | —       | Home Dashboard UID                                                                   |
| `language`         | string  | No       | —       | The language value                                                                   |
| `navbar`           | object  | No       | —       | The navbar value                                                                     |
| `queryHistory`     | object  | No       | —       | Query History                                                                        |
| `regionalFormat`   | string  | No       | —       | Regional Format                                                                      |
| `theme`            | string  | No       | —       | The theme value                                                                      |
| `timezone`         | string  | No       | —       | Any IANA timezone string (e.g. America/New\_York), 'utc', 'browser', or empty string |
| `weekStart`        | string  | No       | —       | Week Start                                                                           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "homeDashboardId": {
        "type": "integer",
        "description": "The numerical :id of a favorited dashboard"
      },
      "homeDashboardUID": {
        "type": "string",
        "description": "Home Dashboard UID"
      },
      "language": {
        "type": "string",
        "description": "The language value"
      },
      "navbar": {
        "type": "object",
        "description": "The navbar value",
        "properties": {
          "bookmarkUrls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Bookmark Urls"
          }
        }
      },
      "queryHistory": {
        "type": "object",
        "description": "Query History",
        "properties": {
          "homeTab": {
            "type": "string",
            "description": "Home Tab"
          }
        }
      },
      "regionalFormat": {
        "type": "string",
        "description": "Regional Format"
      },
      "theme": {
        "type": "string",
        "description": "The theme value",
        "enum": [
          "light",
          "dark",
          "system"
        ]
      },
      "timezone": {
        "type": "string",
        "description": "Any IANA timezone string (e.g. America/New_York), 'utc', 'browser', or empty string"
      },
      "weekStart": {
        "type": "string",
        "description": "Week Start"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_org\_user\_for\_current\_org

Updates the given user.

**Parameters:**

| Parameter | Type    | Required | Default | Description    |
| --------- | ------- | -------- | ------- | -------------- |
| `user_id` | integer | Yes      | —       | User Id        |
| `role`    | string  | No       | —       | The role value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      },
      "role": {
        "type": "string",
        "description": "The role value",
        "enum": [
          "None",
          "Viewer",
          "Editor",
          "Admin"
        ]
      }
    },
    "required": [
      "PCID",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_service\_account

Update service account

**Parameters:**

| Parameter          | Type    | Required | Default | Description        |
| ------------------ | ------- | -------- | ------- | ------------------ |
| `serviceAccountId` | integer | Yes      | —       | Service Account Id |
| `isDisabled`       | boolean | No       | —       | Is Disabled        |
| `name`             | string  | No       | —       | The name value     |
| `role`             | string  | No       | —       | The role value     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "serviceAccountId": {
        "type": "integer",
        "description": "Service Account Id"
      },
      "isDisabled": {
        "type": "boolean",
        "description": "Is Disabled"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "role": {
        "type": "string",
        "description": "The role value",
        "enum": [
          "None",
          "Viewer",
          "Editor",
          "Admin"
        ]
      }
    },
    "required": [
      "PCID",
      "serviceAccountId"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_team

Update Team.

**Parameters:**

| Parameter | Type   | Required | Default | Description     |
| --------- | ------ | -------- | ------- | --------------- |
| `team_id` | string | Yes      | —       | Team Id         |
| `email`   | string | No       | —       | The email value |
| `name`    | string | No       | —       | The name value  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "email": {
        "type": "string",
        "description": "The email value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_team\_member

Update Team Member.

**Parameters:**

| Parameter    | Type    | Required | Default | Description          |
| ------------ | ------- | -------- | ------- | -------------------- |
| `team_id`    | string  | Yes      | —       | Team Id              |
| `user_id`    | integer | Yes      | —       | User Id              |
| `permission` | integer | No       | —       | The permission value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      },
      "permission": {
        "type": "integer",
        "description": "The permission value"
      }
    },
    "required": [
      "PCID",
      "team_id",
      "user_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_team\_preferences

Update Team Preferences.

**Parameters:**

| Parameter          | Type    | Required | Default | Description                                                                          |
| ------------------ | ------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `team_id`          | string  | Yes      | —       | Team Id                                                                              |
| `homeDashboardId`  | integer | No       | —       | The numerical :id of a favorited dashboard                                           |
| `homeDashboardUID` | string  | No       | —       | Home Dashboard UID                                                                   |
| `language`         | string  | No       | —       | The language value                                                                   |
| `navbar`           | object  | No       | —       | The navbar value                                                                     |
| `queryHistory`     | object  | No       | —       | Query History                                                                        |
| `regionalFormat`   | string  | No       | —       | Regional Format                                                                      |
| `theme`            | string  | No       | —       | The theme value                                                                      |
| `timezone`         | string  | No       | —       | Any IANA timezone string (e.g. America/New\_York), 'utc', 'browser', or empty string |
| `weekStart`        | string  | No       | —       | Week Start                                                                           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "team_id": {
        "type": "string",
        "description": "Team Id"
      },
      "homeDashboardId": {
        "type": "integer",
        "description": "The numerical :id of a favorited dashboard"
      },
      "homeDashboardUID": {
        "type": "string",
        "description": "Home Dashboard UID"
      },
      "language": {
        "type": "string",
        "description": "The language value"
      },
      "navbar": {
        "type": "object",
        "description": "The navbar value",
        "properties": {
          "bookmarkUrls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Bookmark Urls"
          }
        }
      },
      "queryHistory": {
        "type": "object",
        "description": "Query History",
        "properties": {
          "homeTab": {
            "type": "string",
            "description": "Home Tab"
          }
        }
      },
      "regionalFormat": {
        "type": "string",
        "description": "Regional Format"
      },
      "theme": {
        "type": "string",
        "description": "The theme value",
        "enum": [
          "light",
          "dark",
          "system"
        ]
      },
      "timezone": {
        "type": "string",
        "description": "Any IANA timezone string (e.g. America/New_York), 'utc', 'browser', or empty string"
      },
      "weekStart": {
        "type": "string",
        "description": "Week Start"
      }
    },
    "required": [
      "PCID",
      "team_id"
    ]
  }
  ```
</Expandable>

***

## grafana\_organization\_update\_user

Update user.

**Parameters:**

| Parameter | Type    | Required | Default | Description     |
| --------- | ------- | -------- | ------- | --------------- |
| `user_id` | integer | Yes      | —       | User Id         |
| `email`   | string  | No       | —       | The email value |
| `login`   | string  | No       | —       | The login value |
| `name`    | string  | No       | —       | The name value  |
| `theme`   | string  | No       | —       | The theme value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "user_id": {
        "type": "integer",
        "description": "User Id"
      },
      "email": {
        "type": "string",
        "description": "The email value"
      },
      "login": {
        "type": "string",
        "description": "The login value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      },
      "theme": {
        "type": "string",
        "description": "The theme value"
      }
    },
    "required": [
      "PCID",
      "user_id"
    ]
  }
  ```
</Expandable>
