Endpoints
| Method | Path | Description | Admin required |
|---|---|---|---|
GET | /users.json | List users. | Yes |
GET | /users/:id.json | Get a single user. | No |
POST | /users.json | Create a user. | Yes |
PUT | /users/:id.json | Update a user. | Yes |
DELETE | /users/:id.json | Delete a user. | Yes |
List users
GET /users.json
Returns a paginated list of all users. Requires administrator access.
Query parameters
Filter by user status.
0 = anonymous, 1 = active, 2 = registered (not yet activated), 3 = locked.Filter users whose login, firstname, lastname, or email contains this string.
Filter users who are members of this group.
Number of records to skip.
Number of records per page (max 100).
Example
Response
Get user
GET /users/:id.json
Returns a single user. Use current as the ID to get the authenticated user’s profile.
Path parameters
The numeric user ID, or
current for the authenticated user.Query parameters
Comma-separated list of associations to embed. Valid values:
memberships, groups.Examples
Response fields
Create user
POST /users.json
Creates a new user account. Requires administrator access.
Request body
Wrap all fields inside auser object.
Username. Max 60 characters. Alphanumeric,
-, _, @, and . only.First name. Max 30 characters.
Last name. Max 255 characters.
Email address.
Password. Required unless
generate_password is true or an auth_source_id is specified.Password confirmation. Must match
password.When
true, Redmine generates a random password and sends it to the user by email.ID of an LDAP authentication source. When set, the password is managed by LDAP.
Grant administrator privileges.
Email notification setting. One of:
all, selected, only_my_events, only_assigned, only_owner, only_my_watches, none.Force the user to change their password on next login.
Array of custom field values:
[{"id": 1, "value": "value"}].Example
201 Created with the new user in the body.
Update user
PUT /users/:id.json
Updates an existing user account. Requires administrator access.
Path parameters
The numeric ID of the user to update.
Example
200 OK.
Delete user
DELETE /users/:id.json
Deletes a user account. Requires administrator access.
Path parameters
The numeric ID of the user to delete.
Example
200 OK.