> ## 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.

# Gong: List Permission Profile

> List all company permission profiles for a given workspace (/v2/all-permission-profiles). Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List all company permission profiles for a given workspace (/v2/all-permission-profiles).

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

## 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(
  'gong_list_permission_profile',
  {
    "workspaceId": "workspace_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute gong_list_permission_profile --input '{
  "workspaceId": "workspace_123"
}' --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": {
    "requestId": "request_123",
    "profiles": [
      {
        "id": "id_123",
        "name": "Example",
        "description": "Example description"
      }
    ]
  }
}
```

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

## Input reference

Returns a list of all permission profiles. The listing is in the alphabetical order of the profile names.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspaceId` | `string` | Yes | — | Workspace identifier, the API will return only the profiles belonging to this workspace. You can retrieve the workspace using the "workspaces" (under "Settings") API. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a list of all permission profiles. The listing is in the alphabetical order of the profile names.",
    "properties": {
      "workspaceId": {
        "type": "string",
        "description": "Workspace identifier, the API will return only the profiles belonging to this workspace. You can retrieve the workspace using the \"workspaces\" (under \"Settings\") API."
      }
    },
    "required": [
      "workspaceId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.requestId` | `string` | No | — | A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes. |
| `result.data.profiles` | `array` | No | — | A list, in which each item specifies a permission profile. |
| `result.data.profiles[].id` | `string` | No | — | Unique numeric identifier of the permission profile (up to 20 digits). |
| `result.data.profiles[].name` | `string` | No | — | Permission profile name. |
| `result.data.profiles[].description` | `string` | No | — | Permission profile description. |
| `result.data.profiles[].callsAccess` | `object` | No | — | Calls access permission. |
| `result.data.profiles[].callsAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].callsAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].libraryFolderAccess` | `object` | No | — | Library folder access permission. |
| `result.data.profiles[].libraryFolderAccess.permissionLevel` | `"none" \| "all" \| "specific-folders" \| "none, all, specific-folders"` | No | — | Library folder permission level - mandatory value. Allowed: `none`, `all`, `specific-folders`, `none, all, specific-folders`. |
| `result.data.profiles[].libraryFolderAccess.libraryFolderIds` | `array` | No | — | List of library folder Ids, if set, "permissionLevel" must not be "none". Items must be unique. |
| `result.data.profiles[].libraryFolderAccess.managePublicFolder` | `boolean` | No | — | A user with this profile can manage public folder, if set, "permissionLevel" must not be "none". |
| `result.data.profiles[].libraryFolderAccess.manageStreams` | `boolean` | No | — | A user with this profile can manage streams, if set, "permissionLevel" must not be "none". |
| `result.data.profiles[].libraryFolderAccess.manageFolderCalls` | `boolean` | No | — | A user with this profile can add calls to folders, archive calls, if set, "permissionLevel" must not be "none". |
| `result.data.profiles[].libraryFolderAccess.shareFoldersAndStreams` | `boolean` | No | — | A user with this profile can share folders and streams from Your Library with other team members, if set, "permissionLevel" must not be "none". |
| `result.data.profiles[].dealsAccess` | `object` | No | — | Deals access permission. |
| `result.data.profiles[].dealsAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].dealsAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].forecastPermissions` | `object` | No | — | All forecast permissions. |
| `result.data.profiles[].forecastPermissions.forecastAccess` | `object` | No | — | User can view forecast submissions. |
| `result.data.profiles[].forecastPermissions.forecastAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].forecastPermissions.forecastAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].forecastPermissions.forecastEditSubmissions` | `object` | No | — | User can edit forecasts submissions. |
| `result.data.profiles[].forecastPermissions.forecastEditSubmissions.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].forecastPermissions.forecastEditSubmissions.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].forecastPermissions.forecastEditTargets` | `object` | No | — | User can edit forecast Targets. |
| `result.data.profiles[].forecastPermissions.forecastEditTargets.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].forecastPermissions.forecastEditTargets.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].coachingAccess` | `object` | No | — | Coaching access permission. |
| `result.data.profiles[].coachingAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].coachingAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].insightsAccess` | `object` | No | — | Insights access permission. |
| `result.data.profiles[].insightsAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].insightsAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].usageAccess` | `object` | No | — | Usage access permission. |
| `result.data.profiles[].usageAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].usageAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].emailsAccess` | `object` | No | — | Emails access permission. |
| `result.data.profiles[].emailsAccess.permissionLevel` | `"all" \| "managers-team" \| "report-to-them" \| "own" \| "none" \| "all / managers-team / report-to-them / own / none"` | No | — | Permission access scope. Allowed: `all`, `managers-team`, `report-to-them`, `own`, `none`, `all / managers-team / report-to-them / own / none`. |
| `result.data.profiles[].emailsAccess.teamLeadIds` | `array` | No | — | List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API. Items must be unique. |
| `result.data.profiles[].scoreCalls` | `boolean` | No | — | User can score calls. |
| `result.data.profiles[].overrideScore` | `boolean` | No | — | User can override someone else score. |
| `result.data.profiles[].downloadCallMedia` | `boolean` | No | — | User can download call media. |
| `result.data.profiles[].shareCallsWithCustomers` | `boolean` | No | — | User can share calls with customers. |
| `result.data.profiles[].manuallyScheduleAndUploadCalls` | `boolean` | No | — | User can manually schedule and upload calls. |
| `result.data.profiles[].privateCalls` | `boolean` | No | — | User can set their own calls as private. |
| `result.data.profiles[].deleteCalls` | `boolean` | No | — | User can delete calls. |
| `result.data.profiles[].trimCalls` | `boolean` | No | — | User can trim calls. |
| `result.data.profiles[].listenInCalls` | `boolean` | No | — | User can listen in calls. |

The table shows the first 50 fields. Use the live contract below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe gong_list_permission_profile --json`.

## 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

* [Gong provider guide](https://deepline.com/docs/providers/gong/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.