---
title: "preview offboarding for a workspace user (require admin privilege)"
method: GET
path: "/w/{workspace}/users/offboard_preview/{username}"
tags: ["user", "admin"]
---

# preview offboarding for a workspace user (require admin privilege)

`GET /w/{workspace}/users/offboard_preview/{username}`

## Path parameters

- `workspace` string, required
- `username` string, required

## Response `200`

offboard preview with object counts

- OffboardPreview
  - `owned` OffboardAffectedPaths, required
    - `scripts` string[]
    - `flows` string[]
    - `apps` string[]
    - `resources` string[]
    - `variables` string[]
    - `schedules` string[]
    - `triggers` object
  - `executing_on_behalf` OffboardAffectedPaths, required
    - `scripts` string[]
    - `flows` string[]
    - `apps` string[]
    - `resources` string[]
    - `variables` string[]
    - `schedules` string[]
    - `triggers` object
  - `referencing` OffboardAffectedPaths, required
    - `scripts` string[]
    - `flows` string[]
    - `apps` string[]
    - `resources` string[]
    - `variables` string[]
    - `schedules` string[]
    - `triggers` object
  - `tokens` OffboardTokenInfo[], required — Tokens owned by this user (will be deleted)
    - `label` string, required
    - `scopes` string[], required
    - `expiration` string
  - `http_triggers` integer, required — HTTP triggers under the user's path (webhook URLs will change)
  - `email_triggers` integer, required — Email triggers under the user's path (email addresses will change)

---

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