Skip to content

Commit 5d52151

Browse files
committed
Update the column description for SHOW PRIVILEGES AS COMMANDS
to be more visible as tables and not just part of the text, this is what most show commands does
1 parent 44515fc commit 5d52151

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,25 @@ Other users' privileges cannot be listed when using a non-native auth provider.
439439
When using the `RETURN` clause, the `YIELD` clause is mandatory and must not be omitted.
440440

441441
For an easy overview of the existing privileges, it is recommended to use the `AS COMMANDS` version of the `SHOW` command.
442-
This returns the column `command` of type `STRING` containing the privileges as the commands that are granted or denied.
442+
This returns two columns:
443+
[options="header", width="100%", cols="2a,4,2m"]
444+
|===
445+
| Column
446+
| Description
447+
| Type
448+
449+
| command
450+
| The privilege as the command that is granted or denied.
451+
Or in the `AS REVOKE COMMANDS` case, the command to revoke the privilege. label:default-output[]
452+
| STRING
453+
454+
| immutable
455+
| Whether or not the privilege is immutable.
456+
| BOOLEAN
457+
|===
443458

444-
When omitting the `AS COMMANDS` clause, results will include multiple columns describing privileges:
459+
When omitting the `AS COMMANDS` clause, results will include multiple columns describing privileges instead.
460+
They are all returned by default.
445461

446462
[options="header", width="100%", cols="4m,6a,2m"]
447463
|===
@@ -475,8 +491,6 @@ E.g., the entire DBMS, a specific database, a graph, or sub-graph access.
475491

476492
| immutable
477493
| Whether or not the privilege is immutable.
478-
479-
This column is also available for the `AS COMMAND` variant using `YIELD`.
480494
| BOOLEAN
481495

482496
| user

0 commit comments

Comments
 (0)