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

# Coupa

> Connect Coupa Software with an OAuth client credentials app to sync and provision users and user groups, with no read-only variant and no contract import.

*Lumos has two Coupa cards in Integrations. This article covers the **Coupa** version of the **Coupa Software (Spend Management)** card, for user access management (users and user groups). When you open that card, you choose a version: **Coupa** or **Coupa (with Contract Ingestion)**. To additionally pull SaaS contracts from your Coupa instance into the Lumos Vendors area, use [Coupa (with Contract Ingestion)](https://docs.lumos.com/integrations/library/coupa/coupa-contract-ingestion.md). The separate card named **Coupa** uses a newer connector with different fields and capabilities, and isn't covered here.*

## After this article

You will be able to connect Coupa to Lumos to sync and manage user access.

## Capabilities

| Functionality | Type | Sync | Provision | Description |
| - | - | - | - | - |
| Users | Account | Yes | Deprovision only | User accounts, access managed via `core.user` read/write scopes. Lumos can suspend a user |
| User Groups | Permission | Yes | No | Coupa user groups and their members, read via the `core.user_group` scopes |

| Deprovisioning Action | Type | Description |
| - | - | - |
| Suspend | User | Deactivates the user in Coupa. The user isn't deleted, and a Coupa admin can undo it |

Lumos doesn't add users to or remove them from Coupa user groups with this connector.

## Required plan and roles

* **Lumos plan:** No minimum plan requirement is documented for this integration.
* **Coupa role:** A user with **Admin** access in Coupa must perform the setup. The OAuth client is created under **Setup → Oauth2/OpenID Connect Clients**, which requires admin permissions.
* **Permission scoping:** Lumos uses an OAuth 2.0 client (Client Credentials grant). The following scopes are **required**:

  | Scope | What Lumos uses it for |
  | - | - |
  | `core.user.read` | Read user accounts |
  | `core.user.write` | Suspend (deactivate) users |
  | `core.user_group.read` | Read user groups |
  | `core.user_group.write` | Requested when you connect. This connector doesn't change user group membership |
  | `core.common.read` | Requested when you connect. If the OAuth client doesn't include it, the connection fails |
  | `email`, `login`, `openid`, `profile`, `offline_access` | OpenID Connect scopes for the client identity |

  There is no read-only variant of this connector: the `write` scopes above are the baseline for Lumos user access management.

## Instructions

If this is your first time setting up a Coupa OAuth client, Coupa's official guide is [OAuth 2.0 Getting Started with Coupa API](https://success.coupa.com/Integrate/KB/OAuth_2.0_Getting_Started_with_Coupa_API).

**Phase 1: Create the OAuth client in Coupa**

1. Log in to your Coupa control panel as an admin and go to **Setup → Oauth2/OpenID Connect Clients**. (Type "oauth" in the Setup search box to find it fast.)
2. Click **Create**. For **Grant Type**, select **Client credentials**. Leave the JWKS URI field blank. You can use the following client details:
   * Name: `Lumos Integration Client`
   * Login: `lumos-integration`
   * Contact First Name: `Lumos`
   * Contact Last Name: `Integration`
   * Contact Email: `support@lumosidentity.com`
3. Select the 10 scopes listed in **Required plan and roles** above.
4. Click **Save**.
5. Open the client you just created. Copy the **Identifier** string, which is your Client ID. Click **Show/Hide** to reveal, then copy, the **Client Secret**.

**Phase 2: Connect in Lumos**

1. Open the **Coupa Software (Spend Management)** card in Lumos and choose the **Coupa** version, not **Coupa (with Contract Ingestion)**.
2. **Instance Identifier:** your Coupa instance URL, following the pattern `domain.coupahost.com` or `domain.coupacloud.com` (no `https://` prefix).
3. **Client ID:** the Identifier from your Coupa OAuth client.
4. **Client Secret:** the secret from your Coupa OAuth client.
5. Click **Connect**.

## API Endpoints Used

> [!NOTE]
>
> The API endpoints this integration uses are available to logged-in Lumos customers. Log in to view them.

## Troubleshooting

* **Connection fails with a valid Client ID/Secret.** Check the **Instance Identifier** format. It must be `domain.coupahost.com` or `domain.coupacloud.com`, with no `https://` or trailing path.
* **Sync errors or missing data.** Verify every required scope was selected on the OAuth client in **Setup → Oauth2/OpenID Connect Clients**. A missing scope (e.g. `core.common.read`) causes partial or failed syncs.
* **Wrong credentials copied.** In Coupa, the Client ID is the **Identifier** field on the OAuth client. The secret is hidden behind **Show/Hide**. Make sure you are copying from the client created for Lumos, not another integration's client.
* **You need to import Coupa SaaS contracts into Lumos Vendors.** This connector does not ingest contracts. Use the [Coupa (with Contract Ingestion)](https://docs.lumos.com/integrations/library/coupa/coupa-contract-ingestion.md) integration instead. If you're upgrading an existing Coupa integration to add contract ingestion, adding scopes is not enough. Disconnect the existing integration first, then add the new Coupa (with Contract Ingestion) integration. Disconnecting removes the stored credentials, stops syncs, and removes the synced accounts. They sync again when you reconnect. Access Review history for the app is most likely kept, because the new connection uses the same app in Lumos.
