View Issue Details

IDProjectCategoryView StatusLast Update
0032469mantisbtapi restpublic2023-10-31 16:32
Reportervboctor Assigned Tovboctor  
Status closedResolutionfixed 
Product Version2.25.7 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032469: REST API: Support impersonation of users

Support impersonation of users via header for user's with impersonation access levels. This will not require creating an API token for the impersonated user.

  • Useful for administrator (or user with impersonation rights) to impersonate a user without creating an API token.
  • Useful for testing - quickly impersonating a user to take actions on their behalf (negative/positive tests)
TagsNo tags attached.


related to 0032245 closedvboctor REST API for creating API tokens for users 
related to 0032489 assignedvboctor Document impersonation of users via REST API 


Related Changesets

MantisBT: master 23b32463

2023-04-30 04:53


Details Diff
REST API: Support impersonation of users

Fixes 0032469
Affected Issues
mod - api/rest/restcore/AuthMiddleware.php Diff File
mod - tests/core/RequestBuilder.php Diff File
mod - tests/rest/AllTests.php Diff File
add - tests/rest/RestImpersonateUserTests.php Diff File
mod - tests/rest/RestUserTests.php Diff File