> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create User

Create a new user in the system.

**Note:** Password is required for email login. For other authentication types, the `Auth Data` and `Auth Service` fields are required.

**Required Permissions**:

* No permission is required for creating email/username accounts on an open server.
* An auth token is required for other authentication types such as `LDAP` or `SAML`.

<Note>
  External Documentation

  To learn more, visit the [Mattermost documentation](https://developers.mattermost.com/api-documentation/#/operations/CreateUser).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                       |
  | --------------- | ----------------------------------------------------------------------------------------------------------------- |
  | Email           | The email address of the new user.                                                                                |
  | Email Token ID  | The token ID from an email verification link.                                                                     |
  | First Name      | The first name of the new user.                                                                                   |
  | Invitation ID   | The token ID from an invitation link.                                                                             |
  | Last Name       | The last name of the new user.                                                                                    |
  | Manual Timezone | The timezone value when setting it manually.                                                                      |
  | Nickname        | The nickname of the new user.                                                                                     |
  | Notify Props    | A JSON object of custom notification properties.                                                                  |
  | Password        | The password used for email authentication.<br /><br />**Note:** This field is required for email authentication. |
  | Position        | The position or title of the new user.                                                                            |
  | Username        | The username of the new user.                                                                                     |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                                   |
  | ---------------------- | --------------------------------------------------------------------------------------------- |
  | Auth Data              | The service-specific authentication data required for verification, such as an email address. |
  | Auth Service           | The authentication service to use for this user.                                              |
  | Locale                 | The locale for the new user.                                                                  |
  | Props                  | A JSON object of custom user properties.                                                      |
  | Use Automatic Timezone | Set to use the browser/system timezone.                                                       |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "string",
	"create_at": -9007199254740991,
	"update_at": -9007199254740991,
	"delete_at": -9007199254740991,
	"username": "string",
	"first_name": "string",
	"last_name": "string",
	"nickname": "string",
	"email": "string",
	"email_verified": true,
	"auth_service": "string",
	"roles": "string",
	"locale": "string",
	"notify_props": {
		"email": "string",
		"push": "string",
		"desktop": "string",
		"desktop_sound": "string",
		"mention_keys": "string",
		"channel": "string",
		"first_name": "string"
	},
	"props": {},
	"last_password_update": -9007199254740991,
	"last_picture_update": -9007199254740991,
	"failed_attempts": 0,
	"mfa_active": true,
	"timezone": {
		"useAutomaticTimezone": "string",
		"manualTimezone": "string",
		"automaticTimezone": "string"
	}
}
```

## Workflow Library Example

[Create User with Mattermost and Send Results Via Email](https://library.blinkops.com/workflows/create-user-with-mattermost-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-user-with-mattermost-and-send-results-via-email/canvas" />
</div>
