From 41425290fbdc1872bd6bea3f5412d00790deffb5 Mon Sep 17 00:00:00 2001 From: jason-price-mongodb <69260375+jason-price-mongodb@users.noreply.github.com> Date: Thu, 4 Nov 2021 09:37:41 -0700 Subject: [PATCH] DOCSP-19331 show user output (#6075) Co-authored-by: jason-price-mongodb --- source/reference/method/db.getUser.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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' ] + }