View Issue Details

IDProjectCategoryView StatusLast Update
0027128mantisbtapi restpublic2023-10-31 16:32
Reporteruv_jfuchs Assigned Tovboctor  
PriorityhighSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
PlatformVMOSCentOS LinuxOS Version7.8
Product Version2.24.1 
Target Version2.26.0Fixed in Version2.26.0 
Summary0027128: Can not get userid from another user with REST API
Description

Hi,
I want to write a script to create and delete users via the REST API.
Now I have the problem that the delete user via API needs the userid not the username.
I need a option in the API to get the userid from an user.

Thank you very much.

Steps To Reproduce

{{url}}/api/rest/users/:user_id

TagsNo tags attached.

Relationships

related to 0027133 closedvboctor delete user with username instead of userid via rest api 

Activities

Related Changesets

MantisBT: master 60f781b9

2023-04-10 00:38

vboctor


Details Diff
REST API: Get User By Ref (where ref can be id, name, email, realname)

Fixes 0027128
Affected Issues
0027128
mod - api/rest/restcore/users_rest.php Diff File
mod - core/commands/UserGetCommand.php Diff File
mod - tests/rest/RestUserTests.php Diff File

MantisBT: master 4d08ef6d

2023-04-22 02:31

vboctor


Details Diff
REST API: Get API by username instead of ref - no more real name or email

Fixes 0027128
Affected Issues
0027128
mod - api/rest/restcore/users_rest.php Diff File
mod - core/commands/UserGetCommand.php Diff File
mod - tests/rest/RestUserTests.php Diff File