---
title: "Get user permissions"
method: GET
path: "/permissions"
tags: ["Authentication & Authorization"]
---

# Get user permissions

`GET /permissions`

This API returns a list of permissions for the user that is currently logged in.

*Example:*
Assume the following RBAC policy, and users `alice` and `bob`:
```
p, role:dev, namespaces, read, *
p, role:dev, database-engines, *, */*
p, role:dev, database-clusters, *, */*
p, bob, database-clusters, *, */*
g, alice, role:dev
```
The API will return the following permissions for `alice`:
```
{
  "permissions": [
    [
        "alice",
        "namespaces",
        "read",
        "*"
    ],
    [
        "alice",
        "database-engines",
        "*",
        "*/*"
    ],
    [
        "alice",
        "database-clusters",
        "*",
        "*/*"
    ]
  ]
}
```
And the following permissions for `bob`:
```
{
  "permissions": [
    [
        "bob",
        "database-clusters",
        "*",
        "*/*"
    ]
  ]
}
```

## Response `200`

Successful operation

- UserPermissions
  - `enabled` boolean, required
  - `permissions` array[]
    - string[]

## Other responses

- `400` — Unsuccessful operation
- `500` — Internal server error

---

[API](https://skmtc.net/openeverest/apis/openeverest-schema.md) · [All operations](https://skmtc.net/openeverest/apis/openeverest-schema/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openeverest/openeverest-schema/versions/46b19e13670b/schema)
