---
title: "Assign Harbor User"
method: PUT
path: "/api/harbors/{harbor_id}/users/{user_id}"
tags: ["Harbors"]
---

# Assign Harbor User

`PUT /api/harbors/{harbor_id}/users/{user_id}`

Assigns an existing Harbor-only user to a Harbor.

The assignment is idempotent. Regular Polytomic users cannot be assigned because they already have application access to Harbors.

## Path parameters

- `harbor_id` string, uuid, required — Unique identifier of the Harbor.
- `user_id` string, uuid, required — Unique identifier of the Harbor-only user.

## Headers

- `X-Polytomic-Version` string

## Response `200`

OK

- HarborUserEnvelope
  - `data` HarborUserResponse
    - `created_at` string, date-time — When the user was invited.
    - `email` string — Email address used to sign in.
    - `harbor_ids` string[], nullable — Harbors assigned to this user.
    - `harbor_only` boolean — Whether the account is restricted to assigned Harbors.
    - `id` string, uuid — Unique identifier of the user.
    - `organization_id` string, uuid — Organization the user belongs to.
    - `status` string — Current account status.

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/revisions/42f4cfea0ea3/schema)
