postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

Feature Request - Include Logged-In User Details in Dynamic Vars #12581

Open pagbebiyi opened 10 months ago

pagbebiyi commented 10 months ago

Is there an existing request for this feature?

Is your feature request related to a problem?

Yes. Our team relies heavily on a shared Postman collection for testing downstream APIs. However, the current implementation using random dynamic variables makes it challenging to identify who is creating which requests, leading to confusion in tracking and analyzing test data.

Describe the solution you'd like

I am requesting the implementation of a dynamic variable in Postman that incorporates the details of the logged-in user into the request. This dynamic variable should be accessible within the shared collection environment.

Example Dynamic Variable Format:

"test_by_{{username}}-{{randomInt}}"

In this format, {{username}} would be replaced with the username of the logged-in user, ensuring that each request created by a user is uniquely identified. This enhancement would greatly improve traceability and clarity when multiple users are using the same collection for testing.

Expected Benefits:

This solution would empower teams to better understand and manage their collaborative testing efforts within shared collections.

Describe alternatives you've considered

The only viable alternative considered was attempting to dynamically retrieve the computer name as a unique identifier. However, this proved to be too complex and challenging to implement effectively

Additional context

Thank you for considering this feature request. I believe it would be a valuable addition to Postman, enhancing the collaboration and usability of the platform.

Best regards, Prince

### Tasks
- [ ] https://github.com/postmanlabs/postman-app-support/issues/5502
pagbebiyi commented 10 months ago

Somewhat related - issues/5502