> 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/a/asana.md).

# Asana

Asana is a work management platform. OctoXLabs reads the users of a workspace or organization.

## Use cases

* Find Asana accounts that have no match in your directory.

```
Adapters = asana AND NOT Adapters = active-directory
```

* Check what one Asana connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                  | Port | Protocol |
| ------------------- | -------------------------------------------- | ---- | -------- |
| OctoXLabs connector | app.asana.com (default, configurable Domain) | 443  | HTTPS    |

### Required permissions

| Scope or role                                    | Permission | Needed for |
| ------------------------------------------------ | ---------- | ---------- |
| Personal access token of a user in the workspace | Read       | Users      |

Make sure the token can read user data of the workspace.

## Create credentials in Asana

{% stepper %}
{% step %}

### Open the Developer Console

Go to the [Asana Developer Console](https://app.asana.com/0/my-apps).
{% endstep %}

{% step %}

### Find Personal Access Tokens

In **My Apps**, scroll to **Personal Access Tokens**.
{% endstep %}

{% step %}

### Create the token

Click **Create new token**, enter a name or description and click **Create token**.
{% endstep %}

{% step %}

### Save the token

Copy the token now. You cannot view it again after you leave the page.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                   | Required | Type    | Default       | Description                                                                              |
| --------------------------- | -------- | ------- | ------------- | ---------------------------------------------------------------------------------------- |
| Domain                      | Yes      | String  | app.asana.com | Domain of the Asana server.                                                              |
| Personal Access Token (PAT) | Yes      | String  | None          | Personal access token.                                                                   |
| Workspace/Organization ID   | Yes      | String  | None          | Globally unique ID of the workspace or organization.                                     |
| Proxy                       | No       | String  | None          | Proxy address. The connector sends requests through `http://<value>`.                    |
| Is Secure                   | No       | Boolean | True          | Listed in the form, but the code always builds https URLs, so clearing it has no effect. |
| Timeout                     | No       | Integer | 30            | Time in seconds to wait for API responses.                                               |
| Thread Count                | No       | Integer | 32            | Parallel threads. Minimum 1, maximum 32.                                                 |
| Sleep Time                  | No       | Integer | 0             | Seconds to wait while threads are started.                                               |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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