# Better Stack

platforma citește membrii unei echipe Better Stack prin intermediul UptimeAPIastfel încât să puteți revizui cine are acces.

Creați un token **GlobalAPI** în **Better Stack** > **APItoken** și introduceți **Numele echipei** a echipei pe care o examinați. punctul final al membrilor echipei necesită acest nume atunci când un token global îl cheamă. fila **Token-uri bazate pe echipă** deține tokenuri per-team în schimb: un token **UptimeAPI**, documentat pentru resursele Uptime, și un token **TelemetryAPI**, documentat pentru resursele Telemetry, inclusiv Errors, mai degrabă decât pentru punctul final UptimeAPIpe care îl citește platforma.

## Prerequisites

- accesul administratorului organizației platformei - rolul **Admin** în Better Stack. Numai administratorii pot edita jetoaneleAPIși un lider de echipă le poate vizualiza numai - **Numele echipei** al echipei pe care platforma ar trebui să o revizuiască, pe care dialogul Connect îl solicită alături de jetoan.

## Collected Fields

| the platform field | Better Stack field                                       | Notes                                                                                                                                                                                                                                     |
| ----------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name        | `first_name`, `last_name`                                | the platform joins the two into one name and drops a missing part. A pending invitation carries neither, so the name stays empty                                                                                                                 |
| Email       | `email`                                                  | the platform skips a record that comes back without an email address                                                                                                                                                                             |
| Role        | `role`                                                   | the platform shows `admin`, `billing_admin`, `team_lead`, `responder` and `member` as Admin, Billing admin, Team lead, Responder and Member. Any other value, including `custom`, appears as returned. A record with no role is left without one |
| Admin       | `role`                                                   | Flagged as an administrator when `role` is `admin` or `team_lead`. `billing_admin` is billing only and is not flagged, and neither is a custom role                                                                                       |
| Status      | `type`                                                   | the platform lists `team_member` as active and `team_member_invitation` as inactive. Any other type leaves the status unknown                                                                                                                    |
| MFA         |  |                                                                                                                                                                                                                                           |
| Last login  |  |                                                                                                                                                                                                                                           |
| External ID | `id`                                                     | Stable identifier used to track the account across reviews                                                                                                                                                                                |
| Created at  | `created_at`                                             | When the member joined the team. the platform falls back to `invited_at` when `created_at` is missing, as on a pending invitation                                                                                                                |

platforma enumeră membrii care au fost invitați, dar nu au acceptat încă alături de membrii confirmați, etichetați inactivi. Rolul Better Stack returnează este acela pe care membrul îl deține în echipa pe care ați numit-o, nu în orice altă echipă căreia îi aparține aceeași persoană.

## Step 1: Create a Global API Token

![Crearea unui token GlobalAPIîn setările de token Better StackAPI](/docs/access-review/better-stack-create-api-key.webp)

1. In [Better Stack](https://betterstack.com/settings/global-api-tokens), signed in as an **Admin**, go to **API tokens** and find the **Global API tokens** section. A global token is valid across all of your teams, which is why the team members endpoint takes a team name.
2. Enter a **Token name** (e.g. `Probo Access Review`), leave the permission set to **Read & write**, and click **Create**.
3. Copy the token and store it securely. Existing tokens stay copyable from this screen, so you can retrieve it later.

## Step 2: Connect in the platform

1. În platformă, mergeți la **Access Reviews** > **Sources** > **Add Source**. 2. Găsiți **Better Stack**, faceți clic pe **APIKey**, lipiți tokenul, introduceți **Numele echipei** și faceți clic pe **Connect**.

platforma numește sursa după numele de echipă pe care l-ați introdus și atrage membrii echipei respective în campaniile dvs.

## Troubleshooting

- **Token rejected.** Confirm the token comes from the **Global API tokens** section, which is the kind Better Stack documents alongside the team name parameter. A **Telemetry API token** covers Telemetry resources including Errors, not the Uptime API.
- **No members appear.** Check the **Team Name** against the names Better Stack shows at **Settings** > **Teams** and enter it exactly. A global token selects the team through that name.
- **Token creation is unavailable.** Editing API tokens is an Admin permission in Better Stack. A Team lead can view tokens but not create them, so ask an Admin.
- **Roles do not match what the console shows.** The endpoint reports the role the member holds in the team being listed, so confirm the **Team Name** matches the team you meant to review. Custom roles are an Enterprise feature and come back as `custom`. the platform flags only `admin` and `team_lead` as administrators.
