We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6612013 commit 447f76eCopy full SHA for 447f76e
source/reference/method/db.getUser.txt
@@ -127,10 +127,24 @@ Required Access
127
Example
128
-------
129
130
-The following sequence of operations returns information about the
131
-``appClient`` user on the ``accounts`` database:
+The following operations return information about an example
+``appClient`` user in an ``accounts`` database:
132
133
.. code-block:: javascript
134
135
use accounts
136
db.getUser("appClient")
137
+
138
+Example output:
139
140
+.. code-block:: javascript
141
+ :copyable: false
142
143
+ {
144
+ _id: 'accounts.appClient',
145
+ userId: UUID("1c2fc1bf-c4dc-4a22-8b04-3971349ce0dc"),
146
+ user: 'appClient',
147
+ db: 'accounts',
148
+ roles: [],
149
+ mechanisms: [ 'SCRAM-SHA-1', 'SCRAM-SHA-256' ]
150
+ }
0 commit comments