> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/app-access-denied/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Access denied

After you sign in to a Tuna [app](https://tuna.am/en/docs/apps.md), this page opens (it is shown in Russian only):

```text
Доступ запрещён
Админка — admin.a.2na.am

У этого email нет доступа к приложению. Попросите администратора команды дать вам доступ.

Вы вошли как
anna@example.com
IP 203.0.113.10 · RU · Email OTP

Попробовать другой email

Если это ошибка, сообщите администратору и передайте этот идентификатор:
Request ID tr_5f2c8e1a9b3d4c6e7f801a2b

```

In English: "Access denied. Admin panel — admin.a.2na.am. This email has no access to the app. Ask your team admin to grant you access. Signed in as <anna@example.com>, IP 203.0.113.10 · RU · Email OTP. Try another email. If this is a mistake, contact the admin and give them this ID: Request ID …"

The HTTP status of the response is `403`. Instead of "Админка" (Admin panel), the page shows the app name, and below it the reason for the denial.

## Cause

None of the app's [policies](https://tuna.am/en/docs/apps/policies.md) allowed this request. The reason on the page tells you which condition wasn't met:

| Text on the page                                                                                      | What happened                                                       |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| У этого email нет доступа к приложению (this email has no access to the app)                          | no policy matches this email                                        |
| Этому email запрещён доступ к приложению (this email is denied access to the app)                     | the email matched a deny policy or an exclusion                     |
| Из вашей страны вход в приложение запрещён (sign-in from your country is not allowed)                 | a policy requires sign-in from specific countries                   |
| С этой сети вход в приложение запрещён (sign-in from this network is not allowed)                     | a policy requires sign-in from specific subnets                     |
| Этот способ входа для приложения не подходит (this sign-in method doesn't work for the app)           | a policy requires a different sign-in method, such as corporate SSO |
| Для входа в приложение нужна двухфакторная аутентификация (two-factor authentication is required)     | a policy requires MFA                                               |
| Администратор отключил вход для сотрудников команды (the admin has disabled sign-in for team members) | sign-in with a tuna.am account is turned off in the app settings    |
| Администратор отключил вход по коду из email (the admin has disabled sign-in with an email code)      | sign-in with a one-time code is turned off in the app settings      |

If the admin has set [their own block page](https://tuna.am/en/docs/apps/settings.md#logo-and-block-page) in the app settings, that page opens instead of this one.

### Access request

If a policy requires [admin approval](https://tuna.am/en/docs/apps/access_requests.md), after signing in you explain why you need access, and a waiting page opens with the `200` status:

```text
Ожидание одобрения
Админка

Запрос на доступ отправлен администраторам команды.
Причина: нужен доступ к отчётам
Страница автоматически обновится после решения. Можете оставить вкладку открытой.

```

In English: "Waiting for approval. The access request has been sent to the team admins. Reason: … The page refreshes automatically once a decision is made. You can leave the tab open."

If the admin rejects the request, the page changes to "Запрос отклонён" (request denied) with the `403` status:

```text
Запрос отклонён
Админка

Администратор отклонил ваш запрос на доступ.

```

In English: "Request denied. The admin has rejected your access request."

If nobody reviews the request in time, it changes to "Запрос истёк" (request expired):

```text
Запрос истёк
Админка

Запрос на доступ не был обработан вовремя. Попробуйте создать новый.

```

In English: "Request expired. The access request wasn't processed in time. Try creating a new one."

### Requests without a browser

Services and scripts with a [service token](https://tuna.am/en/docs/apps/service_tokens.md) don't get a page, just a short plain-text response:

* `Invalid service token`, status `401` — the token wasn't found, was revoked, or was passed incorrectly;
* `Forbidden` or `Forbidden: path requires MFA`, status `403` — the token is valid, but no policy allows it on this path.

## What to do

If you don't have access:

1. If you signed in with the wrong email, click "Попробовать другой email" (Try another email).
2. If you need access, contact your team admin and give them the Request ID from the page.
3. If the request was denied or expired, click "Попробовать снова" (Try again) and send a new request.

If you are the app admin:

1. Find the denial in the [audit log](https://tuna.am/en/docs/apps.md#audit) by the user's email and time, and see which policy was applied.
2. Adjust the app's [policies](https://tuna.am/en/docs/apps/policies.md): add the email or domain, country, subnet, or the required sign-in method. You can check a policy without signing in with [policy testing](https://tuna.am/en/docs/apps/policies.md#testing-policies).
3. Pending access requests are in the [Access requests](https://my.tuna.am/team_apps_access_requests?lang=en) section of the dashboard.
