Project

General

Profile

Actions

Feature #19301

closed

Let non admin users update their account via the REST API

Feature #19301: Let non admin users update their account via the REST API

Added by Alex Last over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Resolution:
Fixed

Description

Using Redmine Java API library:

User user = rmf.getUserManager.getCurrentuser;
user.setFirstName("new name");
rmf.getUserManager.update(user);

Error: BadAuthentication.

I believe this is because Redmine requires authorization for "update user" action, which requires admin privileges.
What it should do instead is to check permissions basing on resources. In this example user should be able to change his/her own details.


Related issues 1 (0 open — 1 closed)

Is duplicate of Redmine - Patch #31399: make /my/account endpoint accessible through APIClosedGo MAEDAActions

Updated by Jean-Philippe Lang over 11 years ago Actions #1

  • Tracker changed from Defect to Feature
  • Subject changed from Redmine API should authorize basing on resources, not actions to Let non admin users update their account via the REST API

Updated by Go MAEDA over 6 years ago Actions #2

  • Is duplicate of Patch #31399: make /my/account endpoint accessible through API added

Updated by Go MAEDA over 6 years ago Actions #3

  • Status changed from New to Closed
  • Resolution set to Fixed

An API to allow a user to update their own account has been added in Redmine 4.1.0. See #31399 for details.

Actions

Also available in: PDF Atom