> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/z/zoho-backstage.md).

# Zoho Backstage

Zoho Backstage is an event management platform. OctoXLabs reads every portal of your account and collects the portal members, the people who organise its events, as users. A person who is a member of several portals becomes one user with all of their portals. Event attendees are not collected.

## Use cases

* List all Zoho Backstage portal members.

```
Adapters = zoho-backstage
```

## Before you begin

### Network

| Source              | Destination                                                            | Port             | Protocol |
| ------------------- | ---------------------------------------------------------------------- | ---------------- | -------- |
| OctoXLabs connector | Zoho accounts server of your data center (default `accounts.zoho.com`) | 443              | HTTPS    |
| OctoXLabs connector | Zoho API host returned with the token (`api_domain`)                   | 443              | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional)                                                  | Set in **Proxy** | HTTP     |

Accounts servers by data center: US `accounts.zoho.com`, EU `accounts.zoho.eu`, India `accounts.zoho.in`, Australia `accounts.zoho.com.au`, Japan `accounts.zoho.jp`, Canada `accounts.zohocloud.ca`, Saudi Arabia `accounts.zoho.sa`, UK `accounts.zoho.uk`.

### Required permissions

| Scope or role                           | Permission | Needed for                |
| --------------------------------------- | ---------- | ------------------------- |
| OAuth scope `ZohoBackstage.portal.READ` | Read       | Portals and their members |

Zoho allows 10 access token requests per 10 minutes for one refresh token. Every connection test and discovery uses at least one request.

## Create credentials in Zoho Backstage

{% stepper %}
{% step %}

### Create a Self Client

Sign in to the Zoho API console of your data center (`api-console.zoho.com` for US). Click **GET STARTED**, hover over **Self Client** and click **CREATE NOW**. Click **CREATE**, then **OK**.
{% endstep %}

{% step %}

### Copy the client values

On the **Client Secret** tab copy the **Client ID** and the **Client Secret**.
{% endstep %}

{% step %}

### Generate a code

Open the **Generate Code** tab. Enter `ZohoBackstage.portal.READ` as the scope. Choose how long the code is valid (3, 5, 7 or 10 minutes). Enter a description and click **CREATE**. Copy the code.
{% endstep %}

{% step %}

### Exchange the code

Before the code expires, run the command below. Use your own accounts server.

```bash
curl -X POST "https://YOUR_ZOHO_DOMAIN/oauth/v2/token" \
  -d "code=YOUR_CODE" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "client_secret=YOUR_CLIENT_SECRET" \
  -d "grant_type=authorization_code"
```

{% endstep %}

{% step %}

### Copy the refresh token

Copy the `refresh_token` value from the response. It does not expire unless it is revoked.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default           | Description                                               |
| ------------- | -------- | ------- | ----------------- | --------------------------------------------------------- |
| Zoho domain   | No       | Text    | accounts.zoho.com | Zoho accounts server of your data center.                 |
| Client id     | Yes      | Text    |                   | Client ID of the Self Client.                             |
| Client secret | Yes      | Text    |                   | Client secret of the Self Client.                         |
| Refresh token | Yes      | Text    |                   | Refresh token with the `ZohoBackstage.portal.READ` scope. |
| Proxy         | No       | Text    |                   | Proxy in `host:port` format.                              |
| Timeout       | No       | Integer | 30                | Seconds to wait for API responses.                        |

## Troubleshooting

| Error message                        | Cause                                                | Fix                                                                                     |
| ------------------------------------ | ---------------------------------------------------- | --------------------------------------------------------------------------------------- |
| Zoho did not issue an access token:  | The token call returned no access token or API host. | Check the client ID, secret and refresh token, and the Zoho domain of your data center. |
| Members of portal could not be read. | One portal failed. This is a log warning.            | Check the scope and the portal access.                                                  |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
