---
search:
  tags:
    - Users
    - GET
seo:
  description: >-
    Any signed in user. Returns one user record together with its branch name.
    A… Reference for the GET /api/v1/users/{userId} endpoint in the PharmaFlow
    API.
sidebar:
  label: Read a user
  badge: GET
title: Read a user
type: openapi-operation
---
Any signed in user. Returns one user record together with its branch name. A pharmacist may only read their own record, and an admin may read anyone.

`GET /api/v1/users/{userId}`

**Responses**

- `200` — The user
- `401` — Not authenticated
- `403` — Access forbidden
- `404` — User not found

Response example, 200:

```json
{
  "id": "string",
  "branch_id": "string",
  "email": "string",
  "full_name": "string",
  "phone": "string",
  "role": "string",
  "is_active": true,
  "last_login_at": "string",
  "created_at": "string",
  "updated_at": "string",
  "branch_name": "string"
}
```
