# IdentityUserCreateDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

## Fields
- `userName` (string) required: (min length 3, max length 256, pattern ^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$)
- `name` (string): The user's first name. Optional. (nullable, min length 0, max length 64)
- `surname` (string): The user's last name. Optional. (nullable, min length 0, max length 64)
- `email` (string(email)) required: (min length 0, max length 256)
- `phoneNumber` (string): The user's phone number. Optional. (nullable, min length 0, max length 16)
- `isActive` (boolean)
- `shouldChangePasswordOnNextLogin` (boolean)
- `lockoutEnabled` (boolean)
- `roleNames` (array<string>): The names of the roles to assign to the user. Optional. (nullable)
- `organizationUnitIds` (array<string(uuid)>): The ids of the organization units the user belongs to. Optional. (nullable)
- `userType` ([UserType](https://devportal.demo.winkpg.io/docs/api/models/UserType.md)) required: (nullable)
  Values:
  - `Admin`
  - `Merchant`
  - `Reseller`
- `resellerId` (string(uuid)): (nullable)
- `merchantIds` (array<string(uuid)>): (nullable)
- `password` (string) required: (min length 0, max length 128)
- `sendConfirmationEmail` (boolean)
- `emailConfirmed` (boolean)
- `phoneNumberConfirmed` (boolean)
- `createFacadeApiKey` (boolean): When true, mints a standing API key for the new user as part of creating them.

## See also

- [All documentation](https://devportal.demo.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
