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

# Dialpad

> Learn how to connect Opal to Dialpad to manage company admins and office, department, and call center roles.

With the Dialpad integration, you can manage access to your Dialpad company from Opal:

* Allow users to request just-in-time access to the **Company Admin** role, and to an office, department, or call center role, from the web and Slack
* Review who coaches and who trains in each coaching team
* Optionally suspend a user in Dialpad when they're removed from the app in Opal
* Set the right resource owners to delegate approvals to those with the most context
* Automatically revoke access when a time-bound grant expires

Opal connects to one Dialpad company through a company API key. To manage several companies, add a Dialpad app in Opal for each one.

## Supported resources

| Resource | Read | Grant and revoke access |
| - | - | - |
| Dialpad Company | ✔️ | ✔️ |
| Dialpad Office | ✔️ | ✔️ |
| Dialpad Department | ✔️ | ✔️ |
| Dialpad Call Center | ✔️ | ✔️ |
| Dialpad Coaching Team | ✔️ | |
| Users | ✔️ | Suspend only, when turned on |

Opal syncs every active Dialpad user who has an email address. Invited (pending), suspended, and deleted users aren't synced. The integration doesn't create or delete Dialpad users.

### How Dialpad access maps to Opal

* **Company Admin**: your company appears in Opal as **Dialpad Company**, with the access level **Company Admin**. It lists the company's super admins. Granting it makes the user a super admin, and revoking it removes super admin.
* **Offices and departments**: each active office appears as a **Dialpad Office**, and each department as a **Dialpad Department**, with the access levels **Operator** and **Admin**.
* **Call centers**: each call center appears as a **Dialpad Call Center**, with the access levels **Operator**, **Supervisor**, and **Admin**.
* **One role per member**: a user holds one role on each office, department, and call center. Revoking a role removes the user only if they still hold that role, so revoking **Operator** never removes a **Supervisor**.
* **Coaching teams**: each coaching team appears as a **Dialpad Coaching Team**, with the access levels **Trainee** and **Coach**. Coaches can listen in on their trainees' calls. Coaching teams are read-only, because Dialpad's API can't remove a coaching team member.
* **Suspending users**: when **Suspend users in Dialpad** is `true`, removing a user from the app in Opal suspends them in Dialpad. They keep their phone numbers and can be reactivated in Dialpad.

### Limitations

* Opal doesn't create or delete Dialpad users. A new user needs a license in an office, which you assign in Dialpad.
* Opal doesn't manage channel membership, access control policies, or call center skill levels.
* Opal syncs office roles from each office's operators. Office admin rights stored on a user's own profile, and admins of a Google or Microsoft domain, aren't synced.
* Rooms that are operators of an office, department, or call center aren't synced.
* Adding a call center operator may use one of your company's call center licenses. Removing an operator doesn't release the license.
* Opal doesn't choose the license type a new call center operator gets.

## Requirements

Before you begin, you must:

* Be an Opal Admin
* Be a Dialpad Company Admin, on a Dialpad plan that includes API keys
* Be on version `1.1267.0` or later, if you self-host Opal

## Configuration steps

### 1. Create a company API key

Dialpad's steps are in [Manual API Key Generation](https://developers.dialpad.com/docs/api-key-generation).

1. In Dialpad, go to **Admin Settings** > **My Company** > **Authentication** > **API Keys**, and select **Add key**.
2. Name the key, for example `Opal`, and choose an expiration. When the key expires, Opal can no longer sync or change access, so set a reminder to replace it.
3. You don't need any additional scopes. The default scopes cover everything Opal reads and writes.
4. Save the key, then copy it. Dialpad shows it only once. You'll enter it in Opal in step 2.

If you don't see **API Keys** under **Authentication**, check with Dialpad that your plan includes API access.

> [!NOTE]
>
> Dialpad API keys can't be made read-only. To stop Opal from changing anything in Dialpad, set **Access** to **Read only** in step 2.

### 2. Create the Dialpad app in Opal

In Opal, go to **Inventory** > **+ App** and select **Dialpad**. Fill in the following fields:

![The Connect Dialpad section of the Opal create-app form, with the Dialpad host, Access, Suspend users in Dialpad, sync, and API key fields](https://mintcdn.com/opalsecurity/4KiawRaqHa6DQKrI/images/docs/dialpad-create-app.png?fit=max\&auto=format\&n=4KiawRaqHa6DQKrI\&q=85\&s=832fe74a995d1f3aae020540b616b5aa)

| Field | Value |
| - | - |
| App name | A name for the Dialpad app in Opal, for example `Dialpad`. |
| App admin | The owner who administers the app in Opal. |
| Description | A short description that helps requesters understand what this app is. |
| Visibility | Who in your organization can see the app. |
| Dialpad host | `dialpad.com` for your Dialpad company, or `sandbox.dialpad.com` for a Dialpad developer sandbox. You can't change this after you save the app. |
| Access | **Read and write** (default) lets Opal grant and revoke **Company Admin** and office, department, and call center roles. **Read only** syncs users and roles without changing anything in Dialpad. |
| Suspend users in Dialpad | `false` by default. Choose `true` to let Opal suspend a user in Dialpad when they're removed from this app. |
| Sync offices | `true` by default. Choose `false` to skip offices. |
| Sync departments | `true` by default. Choose `false` to skip departments. |
| Sync call centers | `true` by default. Choose `false` to skip call centers. |
| Sync coaching teams | `true` by default. Choose `false` to skip coaching teams. |
| API key | The company API key from step 1. |

Opal checks the API key when you save the app.

You can change every setting except **Dialpad host** later from the app's **Setup** tab. Turning off a sync setting removes that type's items from Opal, and Opal warns you before it does.

### 3. Import the company, offices, departments, and call centers

After you save the app, on the app's **Assets** tab, select **Import assets**. Import **Dialpad Company** and the offices, departments, call centers, and coaching teams you want to manage, and turn on requests for the ones people should be able to request. Leave requests off for coaching teams, which are read-only. Opal pulls access only for imported items, so roles and members appear after the next sync.

The **Setup** tab lists the reads the API key must be allowed to make: **Read users**, and **Read offices**, **Read departments**, **Read call centers**, and **Read coaching teams** for each type you sync. A failed check means the key can't see that data.

## Troubleshooting

| What you see | What to do |
| - | - |
| `Dialpad rejected the credentials` when you save the app | Copy the API key again, and check that it hasn't expired or been deleted in Dialpad. Check that **Dialpad host** matches where the key was created. |
| **Read users** or another check fails on the Setup tab | Use a company API key created by a Company Admin. A key that isn't a company key sees only its own user's offices. |
| A grant or revoke fails with "this connection is set up read-only" | **Access** is **Read only**. Set it to **Read and write** on the Setup tab. |
| Adding a call center operator fails | Check that your company has a free call center license in Dialpad. |
| Removing someone from the app leaves them active in Dialpad | **Suspend users in Dialpad** is `false`. Set it to `true` on the Setup tab when Opal should suspend them. |
| A user is missing from the app | Opal syncs only active users who have an email address. Invited users appear after they activate their account. |


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