Skip to content

Commit 328e64e

Browse files
kallimachoskay-kim
authored andcommitted
DOCS-11433 Add showAuthenticationRestrictions parameter
1 parent 4460de7 commit 328e64e

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

source/includes/apiargs-dbcommand-usersInfo-field.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@ operation: usersInfo
3131
optional: true
3232
position: 3
3333
type: boolean
34+
---
35+
arg_name: field
36+
description: |
37+
Set the field to true to show the user's authentication restrictions. By
38+
default, this field is ``false``. If viewing all users, you cannot specify
39+
this field.
40+
interface: dbcommand
41+
name: showAuthenticationRestrictions
42+
operation: usersInfo
43+
optional: true
44+
position: 4
45+
type: boolean
3446
...
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
source:
22
file: apiargs-dbcommand-usersInfo-field.yaml
3-
ref: showPrivileges
3+
ref: showCredentials
44
arg_name: field
55
interface: method
66
operation: db.getUser
77
position: 1
88
---
99
source:
1010
file: apiargs-dbcommand-usersInfo-field.yaml
11-
ref: showCredentials
11+
ref: showPrivileges
1212
arg_name: field
1313
interface: method
1414
operation: db.getUser
1515
position: 2
16+
---
17+
source:
18+
file: apiargs-dbcommand-usersInfo-field.yaml
19+
ref: showAuthenticationRestrictions
20+
arg_name: field
21+
interface: method
22+
operation: db.getUser
23+
position: 3
1624
...

source/reference/command/usersInfo.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Definition
2222

2323
{ usersInfo: { user: <name>, db: <db> },
2424
showCredentials: <Boolean>,
25-
showPrivileges: <Boolean>
25+
showPrivileges: <Boolean>,
26+
showAuthenticationRestrictions: <Boolean>
2627
}
2728

2829
The command has the following fields:

0 commit comments

Comments
 (0)