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

# Asana

> Learn how to connect Opal to Asana to manage access to Asana workspaces, workspace guests, and teams.

With the Asana integration, you can manage work management platform access through Opal:

* Allow users to request just-in-time access to Asana workspaces and teams from the web and Slack
* Review who holds Member, Admin, and Guest standing in each workspace
* Set the right resource owners to delegate approvals to those with the most context
* Configure day-one access to Asana with groups from your identity provider

## Supported resources

| Resource | Read | Grant and revoke access | Notes |
| - | - | - | - |
| Asana Workspaces | ✔️ | ✔️ | Access levels: Member and Admin. Opal reads Admin but can only grant Member, because Asana has no API that grants Admin. |
| Asana Workspace Guests | ✔️ | ✔️ | One **Guests** resource per workspace. |
| Asana Teams | ✔️ | ✔️ | Only workspaces that are Asana organizations have teams. The person must already be a member of the team's workspace. |

Opal connects to every workspace the access token can see. Opal does not sync projects, portfolios, goals, or tasks.

> [!NOTE]
>
> Asana decides whether an invited person joins a workspace as a Member or a
> Guest from their email address: an address on one of your organization's
> verified domains becomes a Member, and any other address becomes a Guest.
> Opal cannot override this. Grant the **Guests** resource only to people
> outside your organization's domains, because an on-domain person granted
> guest access joins as a full Member.

## Requirements

* You must be an Opal admin.
* You need an Asana account to own the access token. We recommend a dedicated account for Opal rather than a person's own.
* To revoke workspace access, that account must be an admin of each workspace. Asana only lets workspace admins remove members.
* To grant and revoke team access, that account must be a member of each team. Workspace admin does not replace team membership.
* Be on version X or greater, if you self-host Opal.

## 1. Create an Asana access token

Opal accepts either of these tokens:

* **Personal access token.** Sign in to Asana as the account Opal will use, open the [developer console](https://app.asana.com/0/my-apps), and select **Create new token**. Give it a name (e.g., `Opal`) and copy the token. It is only shown once. See Asana's [personal access token guide](https://developers.asana.com/docs/personal-access-token).
* **Service account token.** On an Asana Enterprise plan, a super admin can create a service account from the Asana admin console and copy its token. Give it full permissions.

A personal access token sees only what its owner sees. Teams with restricted visibility are hidden from accounts that are not members of them or admins of their workspace.

## 2. Create an Asana app in Opal

In Opal, go to **Inventory > +App** and select **Asana**. Fill in the following fields and hit create.

| Field | Value |
| - | - |
| App name | An identifiable name for the Asana app. |
| App admin | The team or user that should manage the Asana app in Opal. |
| Description | Let your end users know what they're requesting access to. |
| Access token | The token you created in [Step 1](#1-create-an-asana-access-token). |

When you create the app, Opal checks whether the token's account is an admin of every workspace it can see. If it is not, Opal shows a warning naming those workspaces. The app still saves, but Opal cannot revoke access in them.

## 3. Import Asana items

After creating the app, import workspaces, workspace guests, and teams from **... > Import items**. Users will now be able to request access to Asana workspaces and teams through Opal.

## User provisioning

Opal can automatically provision and deprovision users in Asana.

When provisioning is enabled, people who don't already have an Asana account are invited when they are granted access to an Asana workspace or team. Opal invites them into that workspace, or into the team's workspace. Deprovisioning removes them from every workspace the access token can see them in, which requires the token's account to be an admin of each of those workspaces.

This is configurable in **Setup > Edit > Provision Asana users** and **Deprovision Asana users**. For more details, see [User provisioning](https://docs.opal.dev/docs/user-provisioning.md).


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