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

# Sumo Logic

> Learn how to connect Opal to Sumo Logic to review and manage the roles your users hold.

With the Sumo Logic integration, you can manage access to your Sumo Logic account from Opal:

* Review which users hold each Sumo Logic role
* Allow users to request Sumo Logic roles from the web and Slack
* Automatically revoke a role when a time-bound grant expires

Opal connects to one Sumo Logic account through an access key. To manage several accounts, add a Sumo Logic app in Opal for each one.

## Supported resources

| Resource | Read | Grant and revoke access | Notes |
| - | - | - | - |
| Sumo Logic Organization | ✔️ | ✔️ | Each Sumo Logic role is an access level. |

Your Sumo Logic account appears as **Sumo Logic Organization**. Opal reads the roles from your account, including any you've edited or created, and offers each one as an access level. Granting a role adds it to the user without changing their other roles, and revoking one removes only that role.

Opal syncs active Sumo Logic users as accounts. Deactivated users, users who haven't accepted their invitation, and service accounts aren't synced.

## Requirements

Before you begin, you must:

* Be an Opal Admin
* Have a Sumo Logic user with the administrator role or the **Manage Users And Roles** capability who can create an access key
* Be on version `X` or later, if you self-host Opal

## Configuration steps

### 1. Create a Sumo Logic access key

Sumo Logic has no view-only capability for users and roles, so the access key needs **Manage Users And Roles** even if you only want Opal to sync. You choose whether Opal changes anything in step 2.

1. In Sumo Logic, create an access key from **Administration** > **Account Security Settings** > **Access Keys**, or from **Personal Access Keys** under your user menu. The person who creates it needs the administrator role or the **Manage Users And Roles** capability.
2. Give the key the **Default** scope, or a **Custom** scope with the user and role **View** permissions.
3. Copy the **Access ID** and **Access key**. Sumo Logic shows the access key only once.

An access key holds its creator's capabilities, narrowed by its scopes, and works only in the deployment that issued it.

### 2. Create the Sumo Logic app in Opal

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

| Field | Value |
| - | - |
| App name | A name for the Sumo Logic app in Opal, for example `Sumo Logic`. |
| App admin | The owner who administers the app in Opal. |
| Description | A short description that helps requesters understand what this app is. |
| Access | **Read and write** (default) to grant and revoke roles, or **Read only** to sync who has access without changing Sumo Logic. |
| Deployment | The API host for your Sumo Logic deployment, shown under your account's API endpoint: **api.sumologic.com** (default), **api.us2.sumologic.com**, **api.au.sumologic.com**, **api.ca.sumologic.com**, **api.ch.sumologic.com**, **api.de.sumologic.com**, **api.esc.sumologic.com**, **api.eu.sumologic.com**, **api.fed.sumologic.com**, **api.in.sumologic.com**, **api.jp.sumologic.com**, or **api.kr.sumologic.com**. |
| Access ID | The Access ID from step 1. |
| Access key | The access key from step 1. |

Opal checks the credentials when you save the app. The app's **Setup** tab shows whether the access key can read users and roles.

### 3. Import assets

After you save the app, import the account: on the app's **Assets** tab, select **Import assets**, choose **Sumo Logic Organization**, and turn on requests if people should be able to request roles. Opal pulls access only for imported items, so role holders appear after the next sync.

## Troubleshooting

| Error or symptom | Fix |
| - | - |
| **Read users** or **Read roles** fails | Create the key as a user with **Manage Users And Roles**, give it the **Default** scope or user and role **View**, and check **Deployment**. |
| A grant or revoke is refused without reaching Sumo Logic | **Access** is **Read only**. Set it to **Read and write** on the **Setup** tab. |
| A grant or revoke fails naming **Manage Users And Roles** | The key needs that capability, or set **Access** to **Read only**. |


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