How to Track the User Who Uploaded a Study in Orthanc?

Hello,

For each DICOM instance stored into Orthanc through the REST API, Orthanc automatically records the username associated with the HTTP basic access authentication as the HttpUsername metadata.

For instance:

$ curl -u user:password http://localhost:8042/instances --data-binary @sample.dcm
$ curl http://localhost:8042/instances/19816330-cb02e1cf-df3a8fe8-bf510623-ccefe9f5/metadata/HttpUsername
user

If the DICOM files are received by a more complex mechanism than the plain REST API, you’ll have to implement a plugin (e.g. in Python) that records the username as a custom metadata, depending on the origin of the request. Metadata allows you not to modify the actual DICOM file, which is desirable in most scenarios.

Regards,
Sébastien-