---
search:
  tags:
    - database-services
    - GET
seo:
  description: >-
    Each user (local or OIDC) whose role on the service… Reference for the GET
    /api/v1/database-services/{id}/access endpoint in the TimescaleDB Enterprise
    API.
sidebar:
  label: List users with access
  badge: GET
title: List users with access
type: openapi-operation
---
Each user (local or OIDC) whose role on the service is viewer or higher: from the default role, from a grant, or both. A disabled user is in the list too.

`GET /api/v1/database-services/{id}/access`

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
[
  {
    "default_role": "none",
    "disabled": true,
    "display_name": "string",
    "grant_role": "viewer",
    "role": "viewer",
    "user_id": "string",
    "username": "string"
  }
]
```
