Create a user

This endpoint is only available to organization administrators.

Create a new user account via the API.


Usage examples

#!/usr/bin/env python

import zulip

# The user for this zuliprc file must be an organization administrator
client = zulip.Client(config_file="~/zuliprc-admin")

# Create a user
request = {
    'email': '',
    'password': 'temp',
    'full_name': 'New User',
result = client.create_user(request)

More examples and documentation can be found here.

const Zulip = require('zulip-js');

// The user for this zuliprc file must be an organization administrator.
const config = { zuliprc: 'zuliprc-admin' };

Zulip(config).then(async (client) => {
    const params = {
        email: "",
        password: "temp",
        full_name: "New User",

    return await client.users.create(params);

curl -sSX POST \
    -d '' \
    -d 'password=abcd1234' \
    -d 'full_name=New User'


email required


The email address of the new user.

password required

Example: abcd1234

The password of the new user.

full_name required

Example: New User

The full name of the new user.


Example response

A typical successful JSON response may look like:

    "msg": "",
    "result": "success"

A typical JSON response for when another user with the same email address already exists in the realm:

    "msg": "Email '' already in use",
    "result": "error"