Skip to content

DOCSP-19331 show user output (#6075) #6076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions source/reference/method/db.getUser.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
}