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

# Service accounts

> Create a service account for one of your systems, choose what it can read, and copy its client ID and client secret.

A service account stands for one of your systems, such as a BI tool or a script. It has a client ID, a client secret and a set of [scopes](https://docs.cimento.ai/api/scopes.md) that decide what it can read.

Create one service account for each system. You can then change or cut off one system without touching the others. An organization can have up to 20.

## Create a service account

**1. Open API access**

Go to **Admin → Integrations**. Under **Data & tooling**, open **API access**, then click **Add service account**.

**2. Name it**

Enter a **Name** that says which system it is for, such as `BI export`. The name must be unique in your organization. A **Description** is optional.

**3. Choose its scopes**

Under **Scopes**, tick what the service account can read. Give it only what its system needs.

You can give a service account only the permissions you hold yourself. A scope you don't hold is greyed out and says **You don't have this permission**.

Some scopes let a service account read details about named people. Cimento says so beside each in the list. See [Scopes](https://docs.cimento.ai/api/scopes.md#scopes-that-expose-personal-data).

**4. Copy the client ID and client secret**

Click **Add service account**. Cimento shows the client ID and the client secret.

Copy the client secret now and store it somewhere safe. Cimento shows it once and cannot show it again. Then click **Done**.

> [!WARNING]
>
> Treat the client secret like a password. Anyone who has it and the client ID can read whatever the service account's scopes allow. If it leaks, [rotate it and revoke the old one](https://docs.cimento.ai/api/rotating-secrets.md#a-secret-has-leaked).

## The client ID

The client ID is two IDs joined by a dot, 73 characters in all:

```text theme={null}
5247f82f-7225-4159-ad28-7ad72da4a379.0b813a8b-b803-4a51-9d0e-3f1f0c2b7a11
```

Use it whole. Half of it looks like a complete ID, but the token URL refuses it.

The client ID is not secret. You can read it again at any time on the **API access** page.

## What the list shows

| Column | What it tells you |
| - | - |
| **Service account** | The name, description and client ID. |
| **Scopes** | What the service account can read. **Needs rotation** marks a scope that was added after the current client secret was made. See [Adding a scope](https://docs.cimento.ai/api/rotating-secrets.md#adding-a-scope). |
| **Client secrets** | The last four characters of each client secret that works. One being replaced shows how long it has left. |
| **Status** | **Active**, or **Disabled** when it cannot get new access tokens. |
| **Last used** | When the service account last got an access token. |

## Change a service account

Open the **⋯** menu on its row.

| Action | What it does |
| - | - |
| **Edit** | Change the name, description or scopes. |
| **Rotate secret** | Make a new client secret. See [Rotating secrets](https://docs.cimento.ai/api/rotating-secrets.md). |
| **Revoke previous secret** | End a replaced client secret before its 24 hours are up. |
| **Disable** / **Enable** | Stop the service account getting new access tokens, or let it again. |
| **Delete** | Remove the service account and its client secrets for good. |

Removing a scope takes effect on the next access token. Adding one needs a new client secret first: see [Adding a scope](https://docs.cimento.ai/api/rotating-secrets.md#adding-a-scope).


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