View Issue Details

IDProjectCategoryView StatusLast Update
0036119mantisbtapi restpublic2025-08-07 15:14
ReporterHodinaU Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Product Version2.27.0 
Summary0036119: Cannot create a user through the API
Description

I'm using the Mantis API and creating a user using the /api/rest/users/ (POST) method. Everything goes smoothly, but when I try to log in with the specified password, it returns an authorization error, indicating that the password is incorrect. This method was recently added, and I'm wondering if anyone has encountered a similar issue.

TagsNo tags attached.

Relationships

related to 0023838 closedvboctor Create user via REST API 
related to 0036095 new Cannot create API token programmatically 

Activities

dregad

dregad

2025-07-16 04:59

developer   ~0070386

The system works as designed.

User creation by REST API follows MantisBT configuration, in particular when send_reset_password and enable_email_notification are set to ON, the password provided in the API endpoint will be ignored and a random one will be generated. An email will be sent to the user for them to confirm the account registration.

This method was recently added, and I'm wondering if anyone has encountered a similar issue.

For the record, POST /api/rest/users/ is not new, the endpoint was added in 2018, see 0023838