[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: |
|
||||||||
| 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? |