> ## 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: Inputs, Cost & CLI Example

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

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=gong_list_permission_profile:{"workspaceId":"{{workspaceId}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                  | Type     | Required | Default | Description                                                                                                                                                            |
| --------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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={null}
  {
    "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 Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes."
          },
          "profiles": {
            "type": "array",
            "description": "A list, in which each item specifies a permission profile.",
            "items": {
              "type": "object",
              "description": "Permission profile",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Unique numeric identifier of the permission profile (up to 20 digits)."
                },
                "name": {
                  "type": "string",
                  "description": "Permission profile name."
                },
                "description": {
                  "type": "string",
                  "description": "Permission profile description."
                },
                "callsAccess": {
                  "type": "object",
                  "description": "Calls access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Permission access scope.",
                      "enum": [
                        "all",
                        "managers-team",
                        "report-to-them",
                        "own",
                        "none",
                        "all / managers-team / report-to-them / own / none"
                      ]
                    },
                    "teamLeadIds": {
                      "type": "array",
                      "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "libraryFolderAccess": {
                  "type": "object",
                  "description": "Library folder access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Library folder permission level - mandatory value.",
                      "enum": [
                        "none",
                        "all",
                        "specific-folders",
                        "none, all, specific-folders"
                      ]
                    },
                    "libraryFolderIds": {
                      "type": "array",
                      "description": "List of library folder Ids, if set, \"permissionLevel\" must not be \"none\".",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of library folder Ids, if set, \"permissionLevel\" must not be \"none\"."
                      }
                    },
                    "managePublicFolder": {
                      "type": "boolean",
                      "description": "A user with this profile can manage public folder, if set, \"permissionLevel\" must not be \"none\"."
                    },
                    "manageStreams": {
                      "type": "boolean",
                      "description": "A user with this profile can manage streams, if set, \"permissionLevel\" must not be \"none\"."
                    },
                    "manageFolderCalls": {
                      "type": "boolean",
                      "description": "A user with this profile can add calls to folders, archive calls, if set, \"permissionLevel\" must not be \"none\"."
                    },
                    "shareFoldersAndStreams": {
                      "type": "boolean",
                      "description": "A user with this profile can share folders and streams from Your Library with other team members, if set, \"permissionLevel\" must not be \"none\"."
                    }
                  },
                  "additionalProperties": false
                },
                "dealsAccess": {
                  "type": "object",
                  "description": "Deals access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Permission access scope.",
                      "enum": [
                        "all",
                        "managers-team",
                        "report-to-them",
                        "own",
                        "none",
                        "all / managers-team / report-to-them / own / none"
                      ]
                    },
                    "teamLeadIds": {
                      "type": "array",
                      "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "forecastPermissions": {
                  "type": "object",
                  "description": "All forecast permissions.",
                  "properties": {
                    "forecastAccess": {
                      "type": "object",
                      "description": "User can view forecast submissions.",
                      "properties": {
                        "permissionLevel": {
                          "type": "string",
                          "description": "Permission access scope.",
                          "enum": [
                            "all",
                            "managers-team",
                            "report-to-them",
                            "own",
                            "none",
                            "all / managers-team / report-to-them / own / none"
                          ]
                        },
                        "teamLeadIds": {
                          "type": "array",
                          "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                          "uniqueItems": true,
                          "items": {
                            "type": "string",
                            "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "forecastEditSubmissions": {
                      "type": "object",
                      "description": "User can edit forecasts submissions.",
                      "properties": {
                        "permissionLevel": {
                          "type": "string",
                          "description": "Permission access scope.",
                          "enum": [
                            "all",
                            "managers-team",
                            "report-to-them",
                            "own",
                            "none",
                            "all / managers-team / report-to-them / own / none"
                          ]
                        },
                        "teamLeadIds": {
                          "type": "array",
                          "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                          "uniqueItems": true,
                          "items": {
                            "type": "string",
                            "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "forecastEditTargets": {
                      "type": "object",
                      "description": "User can edit forecast Targets.",
                      "properties": {
                        "permissionLevel": {
                          "type": "string",
                          "description": "Permission access scope.",
                          "enum": [
                            "all",
                            "managers-team",
                            "report-to-them",
                            "own",
                            "none",
                            "all / managers-team / report-to-them / own / none"
                          ]
                        },
                        "teamLeadIds": {
                          "type": "array",
                          "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                          "uniqueItems": true,
                          "items": {
                            "type": "string",
                            "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "coachingAccess": {
                  "type": "object",
                  "description": "Coaching access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Permission access scope.",
                      "enum": [
                        "all",
                        "managers-team",
                        "report-to-them",
                        "own",
                        "none",
                        "all / managers-team / report-to-them / own / none"
                      ]
                    },
                    "teamLeadIds": {
                      "type": "array",
                      "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "insightsAccess": {
                  "type": "object",
                  "description": "Insights access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Permission access scope.",
                      "enum": [
                        "all",
                        "managers-team",
                        "report-to-them",
                        "own",
                        "none",
                        "all / managers-team / report-to-them / own / none"
                      ]
                    },
                    "teamLeadIds": {
                      "type": "array",
                      "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "usageAccess": {
                  "type": "object",
                  "description": "Usage access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Permission access scope.",
                      "enum": [
                        "all",
                        "managers-team",
                        "report-to-them",
                        "own",
                        "none",
                        "all / managers-team / report-to-them / own / none"
                      ]
                    },
                    "teamLeadIds": {
                      "type": "array",
                      "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "emailsAccess": {
                  "type": "object",
                  "description": "Emails access permission.",
                  "properties": {
                    "permissionLevel": {
                      "type": "string",
                      "description": "Permission access scope.",
                      "enum": [
                        "all",
                        "managers-team",
                        "report-to-them",
                        "own",
                        "none",
                        "all / managers-team / report-to-them / own / none"
                      ]
                    },
                    "teamLeadIds": {
                      "type": "array",
                      "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API.",
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "description": "List of user IDs to populate the managers-team permission level You can retrieve the user ids by using the “Users” API."
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "scoreCalls": {
                  "type": "boolean",
                  "description": "User can score calls."
                },
                "overrideScore": {
                  "type": "boolean",
                  "description": "User can override someone else score."
                },
                "downloadCallMedia": {
                  "type": "boolean",
                  "description": "User can download call media."
                },
                "shareCallsWithCustomers": {
                  "type": "boolean",
                  "description": "User can share calls with customers."
                },
                "manuallyScheduleAndUploadCalls": {
                  "type": "boolean",
                  "description": "User can manually schedule and upload calls."
                },
                "privateCalls": {
                  "type": "boolean",
                  "description": "User can set their own calls as private."
                },
                "deleteCalls": {
                  "type": "boolean",
                  "description": "User can delete calls."
                },
                "trimCalls": {
                  "type": "boolean",
                  "description": "User can trim calls."
                },
                "listenInCalls": {
                  "type": "boolean",
                  "description": "User can listen in calls."
                },
                "deleteEmails": {
                  "type": "boolean",
                  "description": "User can delete emails."
                },
                "callsAndSearch": {
                  "type": "boolean",
                  "description": "User can view and search calls."
                },
                "library": {
                  "type": "boolean",
                  "description": "User can view library pages."
                },
                "deals": {
                  "type": "boolean",
                  "description": "User can view deals pages."
                },
                "createEditAndDeleteDealsBoards": {
                  "type": "boolean",
                  "description": "User can create/edit/delete deals boards."
                },
                "dealsInlineEditing": {
                  "type": "boolean",
                  "description": "User can perform inline editing of deals."
                },
                "account": {
                  "type": "boolean",
                  "description": "User can view account pages."
                },
                "coaching": {
                  "type": "boolean",
                  "description": "User can view coaching pages."
                },
                "usage": {
                  "type": "boolean",
                  "description": "User can view usage pages."
                },
                "teamStats": {
                  "type": "boolean",
                  "description": "User can view team stats page."
                },
                "initiatives": {
                  "type": "boolean",
                  "description": "User can view initiatives page."
                },
                "market": {
                  "type": "boolean",
                  "description": "User can view market page."
                },
                "activity": {
                  "type": "boolean",
                  "description": "User can view activity pages."
                },
                "forecast": {
                  "type": "boolean",
                  "description": "User can view forecast pages."
                },
                "forecastManage": {
                  "type": "boolean",
                  "description": "User can manage forecast boards and upload targets."
                },
                "engageManageCompanyTemplates": {
                  "type": "boolean",
                  "description": "User can manage company email templates."
                },
                "engageManageCompanySequences": {
                  "type": "boolean",
                  "description": "User can manage company sequences."
                },
                "engageCreateAndManageRulesets": {
                  "type": "boolean",
                  "description": "User can create and manage rulesets."
                },
                "engageSnoozeFlowToDosForOthers": {
                  "type": "boolean",
                  "description": "User can snooze flow in to dos for others"
                },
                "engageAllowCrmFieldsViewChange": {
                  "type": "boolean",
                  "description": "User can change crm fields view"
                },
                "viewEngageAnalyticsActivity": {
                  "type": "boolean",
                  "description": "User can view engage analytics activity page."
                },
                "viewEngageAnalyticsPerformance": {
                  "type": "boolean",
                  "description": "User can view engage analytics performance page."
                },
                "viewEngageAnalyticsFlows": {
                  "type": "boolean",
                  "description": "User can view engage analytics flows page."
                },
                "manageGeneralBusinessSettings": {
                  "type": "boolean",
                  "description": "User can manage general business settings."
                },
                "manageScorecards": {
                  "type": "boolean",
                  "description": "User can manage scorecards."
                },
                "exportCallsAndCoachingDataToCSV": {
                  "type": "boolean",
                  "description": "User can export calls and coaching metrics data to CSV."
                },
                "crmDataInlineEditing": {
                  "type": "boolean",
                  "description": "User can perform inline editing of crm data."
                },
                "crmDataImport": {
                  "type": "boolean",
                  "description": "User can perform import of crm data."
                },
                "viewRevenueAnalytics": {
                  "type": "boolean",
                  "description": "User can view dashboards page."
                },
                "manageRevenueAnalytics": {
                  "type": "boolean",
                  "description": "User can manage revenue analytics."
                },
                "engageReassignFlowToDosToOthers": {
                  "type": "boolean",
                  "description": "User can reassign flow to-dos to others"
                },
                "engageAssignFlowToDosToOthers": {
                  "type": "boolean",
                  "description": "User can assign flow to-dos to others"
                },
                "dealsDataExport": {
                  "type": "boolean",
                  "description": "User can export deals data"
                },
                "aiBuilder": {
                  "type": "boolean",
                  "description": "User can access AI Builder"
                },
                "orchestrateCreateAndManagePlays": {
                  "type": "boolean",
                  "description": "User can create and manage plays."
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute gong_list_permission_profile --payload '{
  "workspaceId": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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