-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
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> }, ... ] } }
- 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
-
SERVER-33400 Add db.currentUser() helper function to wrap connectionStatus
- Closed