Skip to content

Projects can only be read via. API as admin #5781

@mreiche

Description

@mreiche

Current Behavior

I created an Automation user and added the PORTFOLIO_MANAGEMENT permission.
But this user is unable to read all projects like:

https://dtrack.example.com/api/v1/project?pageNumber=1&pageSize=25&excludeInactive=false&onlyRoot=true

-> Result: 5 of 79

As soon as I switch the API key to an Administrator and perform the exact same call:

-> Result: 25 of 79

Steps to Reproduce

  1. Have more projects as 25
  2. Create an Automation api key with PORTFOLIO_MANAGEMENT
  3. Create an Admin api key with all permissions
  4. Compare the project search results.

Expected Behavior

I expect that a user with PORTFOLIO_MANAGEMENT is able to read all projects.

Dependency-Track Version

4.13.6

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Google Chrome

Checklist

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions