DependencyTrack / DependencyTrack/dependency-track

Incomplete Recognition of Users/Projects Created through APIs.

Open
#3,642 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

We've been encountering a hurdle in our workflow and despite our attempts to seek assistance through the channel, we've unfortunately not received any responses.

Our current focus is on programmatically determining the extent of users/projects associated with a Dependency Track instance through APIs. However, it appears that the existing API functionality logs only account for users/projects manually defined via the dependency track user interface. Regrettably, users or projects established through APIs in CI/CD pipelines or scripts aren't being recognized.

We are invoking API using below curl method.
```
curl -X "POST" "http://dtrack.example.com/api/v1/bom" \
-H 'Content-Type: multipart/form-data' \
-H "X-Api-Key: xxxxxxx" \
-F "autoCreate=true" \
-F "projectName=xxxx" \
-F "projectVersion=xxxx" \
-F "bom=@target/bom.json"
```
But we do not get created logs using via API method mentioned above

We're reaching out to inquire if there are any strategies or recommendations you could offer to help us overcome this obstacle. Your insights would be invaluable to us in resolving this issue and optimizing our workflow.

### Proposed Behavior

Our Proposed behaviour is that when we invoke API using below curl method.
```
curl -X "POST" "http://dtrack.example.com/api/v1/bom" \
-H 'Content-Type: multipart/form-data' \
-H "X-Api-Key: xxxxxxx" \
-F "autoCreate=true" \
-F "projectName=xxxx" \
-F "projectVersion=xxxx" \
-F "bom=@target/bom.json"
```
We should got this type of logs
![Screenshot 2024-04-24 221328](https://github.com/DependencyTrack/dependency-track/assets/118272033/757e20b4-1465-4acc-a5e1-dc57e0399266).

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this enhancement was already requested

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.