Skip to content

Commit be7ad5a

Browse files
committed
rewording
1 parent 247082b commit be7ad5a

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

modules/ROOT/pages/authentication-authorization/privileges-and-roles-immutable.adoc

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,8 @@ Immutable privileges and roles are useful for restricting the actions of users w
4242

4343
=== Immutable privileges
4444

45-
You may want to prevent all users from performing Database Management, even the `admin` user (who are themselves able to add or remove privileges).
46-
To do so, it would not be adequate to run:
45+
If you want to prevent all users from performing a certain action, even the `admin` user (who are themselves able to add or remove privileges), then you can use an immutable privilege.
4746

48-
[source, cypher]
49-
----
50-
DENY DATABASE MANAGEMENT ON DBMS TO PUBLIC
51-
----
52-
53-
This is because the `admin` user could subsequently runs this:
54-
55-
[source, cypher]
56-
----
57-
REVOKE DENY DATABASE MANAGEMENT ON DBMS FROM PUBLIC
58-
----
59-
60-
They would then effectively regain Database Management privileges.
61-
62-
Instead, you could use an immutable privilege.
6347

6448
.Create an immutable privilege
6549
======
@@ -96,6 +80,29 @@ SHOW PRIVILEGES WHERE IMMUTABLE
9680
9781
======
9882

83+
[NOTE]
84+
====
85+
86+
It would not be adequate to run:
87+
88+
[source, cypher]
89+
----
90+
DENY DATABASE MANAGEMENT ON DBMS TO PUBLIC
91+
----
92+
93+
This is because the `admin` user could subsequently runs this:
94+
95+
[source, cypher]
96+
----
97+
REVOKE DENY DATABASE MANAGEMENT ON DBMS FROM PUBLIC
98+
----
99+
100+
They would then effectively regain Database Management privileges.
101+
102+
Instead, you could use an immutable privilege.
103+
104+
====
105+
99106
=== Immutable roles
100107

101108
Immutable _privileges_ are useful when wanting to attach a permanent privilege to the `PUBLIC` role, which will apply to all users (because the `PUBLIC` role applies to all users).

0 commit comments

Comments
 (0)