Skip to content

Commit d0033de

Browse files
committed
address review comments
1 parent 5d52151 commit d0033de

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

modules/ROOT/pages/authentication-authorization/manage-privileges.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,9 @@ Other users' privileges cannot be listed when using a non-native auth provider.
438438

439439
When using the `RETURN` clause, the `YIELD` clause is mandatory and must not be omitted.
440440

441-
For an easy overview of the existing privileges, it is recommended to use the `AS COMMANDS` version of the `SHOW` command.
442-
This returns two columns:
441+
For an easy overview of the existing privileges, it is recommended to use the `AS COMMANDS` version of the `SHOW` command, which returns two columns.
442+
443+
.`SHOW PRIVILEGES AS COMMANDS` output
443444
[options="header", width="100%", cols="2a,4,2m"]
444445
|===
445446
| Column
@@ -456,9 +457,10 @@ Or in the `AS REVOKE COMMANDS` case, the command to revoke the privilege. label:
456457
| BOOLEAN
457458
|===
458459

459-
When omitting the `AS COMMANDS` clause, results will include multiple columns describing privileges instead.
460-
They are all returned by default.
460+
Alternatively, you can omit the `AS COMMANDS` clause and get the full details of the privileges returned in multiple columns.
461+
They are all returned by default without requiring a `YIELD`.
461462

463+
.`SHOW PRIVILEGES` output
462464
[options="header", width="100%", cols="4m,6a,2m"]
463465
|===
464466
| Column | Description | Type

modules/ROOT/pages/authentication-authorization/manage-roles.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ For more information, see xref:authentication-authorization/dbms-administration.
339339
== Listing roles
340340

341341

342-
Available roles can be seen using `SHOW ROLES`.
342+
You can view all available roles using the Cypher command `SHOW ROLES`, which returns a single column.
343343

344-
This returns a single column.
344+
.`SHOW ROLES` output
345345
[options="header", width="100%", cols="2a,4,2m"]
346346
|===
347347
| Column
@@ -394,6 +394,8 @@ There are multiple versions of this command, the default being `SHOW ALL ROLES`.
394394
To only show roles that are assigned to users, the command is `SHOW POPULATED ROLES`.
395395
To see which users are assigned to which roles, `WITH USERS` can be added to the command.
396396
The command produces a row per role per user and yields the following column in addition to the one output by `SHOW ROLES`:
397+
398+
.`SHOW POPULATED ROLES WITH USERS` output
397399
[options="header", width="100%", cols="2a,4,2m"]
398400
|===
399401
| Column
@@ -404,7 +406,8 @@ The command produces a row per role per user and yields the following column in
404406
| User name
405407
| STRING
406408
|===
407-
Since this gives a result with one row for each user, if a role is assigned to two users it will show up twice.
409+
410+
Since this gives a result with one row for each user, it shows up twice if a role is assigned to two users.
408411

409412
.Show roles with users
410413
====

0 commit comments

Comments
 (0)