diff --git a/source/reference/method/db.getUser.txt b/source/reference/method/db.getUser.txt index a9567035990..d8c06f83c24 100644 --- a/source/reference/method/db.getUser.txt +++ b/source/reference/method/db.getUser.txt @@ -127,10 +127,24 @@ Required Access Example ------- -The following sequence of operations returns information about the -``appClient`` user on the ``accounts`` database: +The following operations return information about an example +``appClient`` user in an ``accounts`` database: .. code-block:: javascript use accounts db.getUser("appClient") + +Example output: + +.. code-block:: javascript + :copyable: false + + { + _id: 'accounts.appClient', + userId: UUID("1c2fc1bf-c4dc-4a22-8b04-3971349ce0dc"), + user: 'appClient', + db: 'accounts', + roles: [], + mechanisms: [ 'SCRAM-SHA-1', 'SCRAM-SHA-256' ] + }