Skip to content

Commit 447f76e

Browse files
jason-price-mongodbjason-price-mongodb
and
jason-price-mongodb
authored
DOCSP-19331 show user output (#6075) (#6076)
Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 6612013 commit 447f76e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

source/reference/method/db.getUser.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,24 @@ Required Access
127127
Example
128128
-------
129129

130-
The following sequence of operations returns information about the
131-
``appClient`` user on the ``accounts`` database:
130+
The following operations return information about an example
131+
``appClient`` user in an ``accounts`` database:
132132

133133
.. code-block:: javascript
134134

135135
use accounts
136136
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

Comments
 (0)