Skip to content
Merged
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
6 changes: 6 additions & 0 deletions modules/ROOT/pages/tutorial/access-control.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,14 @@ Then you need to *deny* the two specific actions this role is not supposed to pe
* Read any patients' social security number (`SSN`).
* Submit medical diagnoses.

As well as the ability for the `itadmin` to amend their own privileges.

[source, cypher, role=systemcmd]
----
DENY READ {ssn} ON GRAPH healthcare NODES Patient TO itadmin;
DENY CREATE ON GRAPH healthcare RELATIONSHIPS DIAGNOSIS TO itadmin;
DENY ROLE MANAGEMENT ON DBMS TO itadmin;
DENY PRIVILEGE MANAGEMENT ON DBMS TO itadmin;
----

The complete set of privileges available to users assigned the `itadmin` role can be viewed using the following command:
Expand All @@ -254,6 +258,8 @@ SHOW ROLE itadmin PRIVILEGES AS COMMANDS;
| "GRANT LOAD ON ALL DATA TO `itadmin`" |
| "DENY READ {ssn} ON GRAPH `healthcare` NODE Patient TO `itadmin`" |
| "DENY CREATE ON GRAPH `healthcare` RELATIONSHIP DIAGNOSIS TO `itadmin`" |
| "DENY ROLE MANAGEMENT ON DBMS TO `itadmin`" |
| "DENY PRIVILEGE MANAGEMENT ON DBMS TO `itadmin`" |
+-------------------------------------------------------------------------+
----

Expand Down