Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
This command will show you what authenticated principals are active for the connection, as well as what capabilities are activated. Among other things.
Command:
{ connectionStatus: 1 }
|
Response:
{ ok: 1, authInfo: { authenticatedUsers: [ { user: <String>, userSource: <String> }, ... ] } }
|
Attachments
Issue Links
- is duplicated by
-
SERVER-1698 A shell function should be implemented to see if the client is authenticated with the db
-
- Closed
-
-
SERVER-3151 Determine the currently logged-in user
-
- Closed
-
- is related to
-
DOCS-4013 Document connectionStatus command
-
- Closed
-
-
SERVER-33400 Add db.currentUser() helper function to wrap connectionStatus
-
- Closed
-