[SERVER-33400] Add db.currentUser() helper function to wrap connectionStatus Created: 20/Feb/18  Updated: 20/Feb/18  Resolved: 20/Feb/18

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Nic Cottrell Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-7124 connectionStatus command Closed
Participants:

 Description   

It's currently hard to remember how to look up the authenticated user. Can we add a db.currentUser() (or similar) helper function?



 Comments   
Comment by Gregory McKeon (Inactive) [ 20/Feb/18 ]

We believe this has a workaround through connectionStatus and don't have bandwidth to make this improvement at this time.

Comment by Ramon Fernandez Marina [ 20/Feb/18 ]

Since one can authenticate multiple users per connection I'm not sure there's a good notion of "current user". Currently the connectionStatus command shows the users authenticated in the current connection. Maybe a helper with a different name?

Generated at Thu Feb 08 04:33:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.