We share collections with multiple users. Some collections print reports. It would be valuable to be able to identify who ran a collection and generated a report.
Is it possible to save the user email of the person who ran the collection as a variable to print in the report?
For example: 1,000 results. 500 failed. Report ran by {{[email protected]}}
Yes, this is very possible. The Postman API exposes an endpoint to get the currently authenticated user using their API Keys. You will have to integrate this endpoint into your workflow and each person running the collection needs to update their environment variables with their respective API keys.
The name, email, etc of the person who ran this collection can be gotten from this endpoint, stored in a variable and included as a part of the generated report.
Please let me know if you have any additional questions.