Skip to content

DOCS-11433 Add showAuthenticationRestrictions parameter #3268

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
Mar 28, 2018
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions source/includes/apiargs-dbcommand-usersInfo-field.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,16 @@ operation: usersInfo
optional: true
position: 3
type: boolean
---
arg_name: field
description: |
Set the field to true to show the user's authentication restrictions. By
default, this field is ``false``. If viewing all users, you cannot specify
this field.
interface: dbcommand
name: showAuthenticationRestrictions
operation: usersInfo
optional: true
position: 4
type: boolean
...
12 changes: 10 additions & 2 deletions source/includes/apiargs-method-db.getUser-field.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
source:
file: apiargs-dbcommand-usersInfo-field.yaml
ref: showPrivileges
ref: showCredentials
arg_name: field
interface: method
operation: db.getUser
position: 1
---
source:
file: apiargs-dbcommand-usersInfo-field.yaml
ref: showCredentials
ref: showPrivileges
arg_name: field
interface: method
operation: db.getUser
position: 2
---
source:
file: apiargs-dbcommand-usersInfo-field.yaml
ref: showAuthenticationRestrictions
arg_name: field
interface: method
operation: db.getUser
position: 3
...
3 changes: 2 additions & 1 deletion source/reference/command/usersInfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Definition

{ usersInfo: { user: <name>, db: <db> },
showCredentials: <Boolean>,
showPrivileges: <Boolean>
showPrivileges: <Boolean>,
showAuthenticationRestrictions: <Boolean>
}

The command has the following fields:
Expand Down