---
title: "Create a new user"
method: POST
path: "/accounts/{accountname}/users"
tags: ["User Management"]
---

# Create a new user

`POST /accounts/{accountname}/users`

## Path parameters

- `accountname` string, required

## Request body

- UserCreationRequest — A payload for creating a new user, includes the username and password in a single request
  - `username` string, required — The username to create
  - `password` string, required — The initial password for the user, must be at least 6 characters, up to 128

## Response `200`

Credential summary

- User — A username for authenticating with one or more types of credentials. User type defines the expected credentials allowed for the user. Native users have passwords, External users have no credential internally. Internal users are service/system users for inter-service communication.
  - `username` string, required — The username to authenticate with
  - `type` 'native' | 'internal' | 'external' — The user's type
  - `source` string — If the user is external, this is the source that the user was initialized from. All other user types have this set to null
  - `created_at` string, date-time — The timestampt the user record was created
  - `last_updated` string, date-time — The timestamp of the last update to this record

---

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