View Issue Details

IDProjectCategoryView StatusLast Update
0022791mantisbtapi restpublic2023-10-31 16:32
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version2.3.1 
Target Version2.26.0Fixed in Version2.26.0 
Summary0022791: Support retrieving users with specified access level to a project
Description

One scenario for using this is for a client to retrieve the list of users who can be assigned an issue being reported or updated.

TagsNo tags attached.

Relationships

related to 0030908 closedvboctor Update postman collection 
related to 0030907 closedvboctor SOAP API mc_project_get_users doesn't enforce access check 

Activities

Tomasz Klin

Tomasz Klin

2018-01-19 11:27

reporter   ~0058565

Vote Up.
This very important functionality in my application. With out it I can't migrate from SOAP to REST API.

keessonnema

keessonnema

2019-11-22 09:44

reporter   ~0063120

Bump, is this still a consideration? I would love to have this feature implemented in the REST api.

keessonnema

keessonnema

2019-11-25 07:30

reporter   ~0063137

I found the following links that are somewhat helpful, but neeed some work:
https://www.mantisbt.org/forums/viewtopic.php?t=25380
(The drop-in replacement with a patch for a users end-point: https://pastebin.com/DQY2qbcs)

vboctor

vboctor

2022-08-20 22:23

manager   ~0066923

PR: https://github.com/mantisbt/mantisbt/pull/1843

Related Changesets

MantisBT: master 9f5cf7b7

2022-04-29 03:55

vboctor


Details Diff
Implement 'ProjectUsersGetCommand'

Fixes 0022791
Affected Issues
0022791
add - core/commands/ProjectUsersGetCommand.php Diff File

MantisBT: master 176cc967

2022-04-29 03:57

vboctor


Details Diff
Use 'ProjectUsersGetCommand' from REST API

Fixes 0022791
Affected Issues
0022791
mod - api/rest/restcore/projects_rest.php Diff File

MantisBT: master 9cbd65e8

2022-04-29 03:57

vboctor


Details Diff
Use 'ProjectUsersGetCommand' in SOAP API

Fixes 0022791
Affected Issues
0022791
mod - api/soap/mc_project_api.php Diff File

MantisBT: master 4d1a0194

2022-08-20 03:52

vboctor


Details Diff
Support including access levels for project users

Fixes 0022791
Affected Issues
0022791
mod - api/rest/restcore/projects_rest.php Diff File
mod - core/commands/ProjectUsersGetCommand.php Diff File

MantisBT: master f7ba7be3

2022-08-20 04:01

vboctor


Details Diff
Add API to get project users with a certain access level or above.
If no access level specified, get all users that can access the project.

Fixes 0022791
Affected Issues
0022791
mod - api/rest/restcore/projects_rest.php Diff File

MantisBT: master d0a125cd

2022-08-20 21:42

vboctor


Details Diff
Fix query parameters modeled as options + soap fixes

1. Query params should be modeled as query not option.
2. Remove pagination for SOAP API.
3. Use id instead of project_id for project_id.
4. Fix SOAP to return array of users.

Fixes 0022791
Affected Issues
0022791
mod - api/rest/restcore/projects_rest.php Diff File
mod - api/soap/mc_project_api.php Diff File
mod - core/commands/ProjectUsersGetCommand.php Diff File

MantisBT: master 453bf0ac

2022-08-20 22:06

vboctor


Details Diff
Verify that user has access to project

A user that doesn't have VIEWER access to a project, shouldn't be able to query its users.

Fixes 0022791
Affected Issues
0022791
mod - core/commands/ProjectUsersGetCommand.php Diff File

MantisBT: master 6ab678ac

2022-08-20 22:13

vboctor


Details Diff
phpdoc improvements

Fixes 0022791
Affected Issues
0022791
mod - core/commands/ProjectUsersGetCommand.php Diff File