Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
463a27e
WIP default language docs
mnd999 Feb 25, 2025
71a45d4
WIP default language docs
mnd999 Feb 25, 2025
83bd0db
WIP default language docs
mnd999 Feb 26, 2025
cb48c0b
Update modules/ROOT/pages/database-administration/standard-databases/…
mnd999 Feb 26, 2025
aa70f15
Add some sentences about default language and aliases
Hunterness Feb 26, 2025
1a5655d
Add info about default language clauses for aliases
Hunterness Mar 13, 2025
f213059
Document ALTER COMPOSITE DATABASE privilege
Hunterness Mar 28, 2025
3c3483e
Fixing smaller review comments
Hunterness Mar 28, 2025
f30c68c
See if adding width makes the images visible
Hunterness Mar 28, 2025
da55463
Update to handle the different syntaxes depending on cypher version
Hunterness Apr 4, 2025
5a5d54e
Add page for altering composite databases
Hunterness Apr 7, 2025
ff5a4c0
Default Cypher version
renetapopova May 29, 2025
ae4195a
add some labels and minor fixes
renetapopova May 30, 2025
4119532
add the missing partial file
renetapopova Jun 2, 2025
afd11e5
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova Jun 2, 2025
71d2f0b
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova Jun 2, 2025
8c5c302
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova Jun 2, 2025
642d3a1
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova Jun 2, 2025
4d677dd
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova Jun 2, 2025
71fbf70
update the Database management command syntax intro
renetapopova Jun 2, 2025
79fc1bf
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova Jun 10, 2025
c1c5910
Update modules/ROOT/pages/database-administration/standard-databases/…
renetapopova Jun 10, 2025
39ac4e7
Update modules/ROOT/pages/database-administration/standard-databases/…
renetapopova Jun 10, 2025
93b7a0b
apply suggestions from review
renetapopova Jun 23, 2025
cf3a24f
apply suggestions from review
renetapopova Jun 23, 2025
0e0ea5a
further improvements
renetapopova Jun 24, 2025
1faf1b8
add Jens suggestions
renetapopova Jun 24, 2025
7ca960c
update the driver settings
renetapopova Jun 25, 2025
e43b38d
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 26, 2025
a10c44c
Update modules/ROOT/pages/database-administration/index.adoc
renetapopova Jun 26, 2025
da114f7
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
2195640
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
862f8f4
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
53d7a06
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
32e0b71
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
17b4778
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
4b32ad5
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
1434700
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
2df0afc
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
a4a4a19
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
6a66259
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova Jun 27, 2025
fa26e30
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
589c50e
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
aef43ac
Update modules/ROOT/pages/configuration/cypher-version-configuration.…
renetapopova Jun 27, 2025
9577fb0
Update modules/ROOT/pages/database-administration/composite-databases…
renetapopova Jun 27, 2025
d2dac99
Update modules/ROOT/pages/database-administration/index.adoc
renetapopova Jun 27, 2025
4e02b7a
Update modules/ROOT/pages/database-administration/syntax.adoc
renetapopova Jun 27, 2025
038f4e7
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova Jun 27, 2025
fef39f4
Update modules/ROOT/pages/database-administration/aliases/manage-alia…
renetapopova Jun 27, 2025
a0d73c5
Update modules/ROOT/partials/cypher-versions.adoc
renetapopova Jun 27, 2025
b4e1dac
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
bf83fde
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
3fb6171
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
f21bb75
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
60a36c8
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
249909e
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
c9cc0f1
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jun 27, 2025
294d81a
apply suggestion from review
renetapopova Jun 27, 2025
4e02968
update the Cypher versions page
renetapopova Jun 27, 2025
c20f591
reconcile execute procedures with functions
renetapopova Jun 27, 2025
3b429d0
apply suggestions from review
renetapopova Jun 30, 2025
d5f1683
update the `admin` role privileges
renetapopova Jun 30, 2025
7a2d695
update the `admin` role privileges
renetapopova Jun 30, 2025
9e9788d
apply suggestions from review
renetapopova Jul 1, 2025
428f94c
Update modules/ROOT/pages/authentication-authorization/dbms-administr…
renetapopova Jul 1, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ For example, the role is missing privileges for managing, creating, and dropping
To create a more powerful administrator, you can grant a different set of privileges.
====

=== Create a custom administrator role from scratch with limited capabilities
=== Create a more powerful custom administrator role from scratch

You can also create a custom administrator role with limited capabilities.
This can be done by creating a new role and granting all `DBMS` privileges, then denying the ones you do not want the role to have, and then granting only the privileges you want to include.
This can be done by creating a new role and granting all `DBMS` privileges, then denying the ones you do not want the role to have, and then granting additional privileges you want to include.
For example, you can create a custom administrator role `customAdministrator` that has all DBMS privileges except for creating, dropping, and modifying databases, and also has the privilege for managing transactions.

. Create a new role:
Expand Down Expand Up @@ -185,7 +185,7 @@ DENY DATABASE MANAGEMENT ON DBMS TO customAdministrator;
GRANT TRANSACTION MANAGEMENT (*) ON DATABASE * TO customAdministrator;
----
+
As a result, the `customAdministrator` role has privileges that include all DBMS privileges except creating, dropping, and modifying databases, as well as managing transactions.
As a result, the `customAdministrator` role has privileges that include managing transactions and all DBMS privileges except creating, dropping, and modifying databases.
. To list all privileges for the role `customAdministrator` as commands, use the following query:
+
[source, cypher, role=noplay]
Expand Down Expand Up @@ -673,7 +673,7 @@ a|Rows: 1
|===


The `ALTER USER` privilege allows the user to run the `ALTER USER` administration command with one or several of the `SET PASSWORD`, `SET PASSWORD CHANGE [NOT] REQUIRED`, `SET AUTH`, `REMOVE AUTH` and `SET STATUS` parts. +
The `ALTER USER` privilege allows the user to run the `ALTER USER` administration command with one or several of the `SET PASSWORD`, `SET PASSWORD CHANGE [NOT] REQUIRED`, `SET AUTH`, `REMOVE AUTH`, `SET STATUS`, `SET HOME DATABASE`, and `REMOVE HOME DATABASE` parts. +
For example:

[source, cypher, role=noplay]
Expand All @@ -683,7 +683,7 @@ ALTER USER jake SET PASSWORD 'verysecret' SET STATUS SUSPENDED

[NOTE]
====
Note that the combination of the `SET PASSWORDS`, `SET AUTH`, `SET USER STATUS`, and the `SET USER HOME DATABASE` privilege actions is equivalent to the `ALTER USER` privilege action.
Note that the combination of the `SET PASSWORDS`, `SET AUTH`, `SET USER STATUS`, and `SET USER HOME DATABASE` privileges is equivalent to the `ALTER USER` privilege.
====

=== Grant privilege to modify users' passwords
Expand Down Expand Up @@ -721,12 +721,12 @@ ALTER USER jake SET PASSWORD 'abcd5678' CHANGE NOT REQUIRED

=== Grant privilege to modify users' auth information

You can grant the privilege to modify users' auth providers using the `SET AUTH` privilege. +
You can grant the privilege to modify users' auth information using the `SET AUTH` privilege. +
For example:

[source, cypher, role=noplay]
----
GRANT SET AUTH ON DBMS TO userModifier
GRANT SET AUTH ON DBMS TO authModifier
----
As a result, the `userModifier` role has privileges that only allow modifying users' auth providers.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ It can be used for:
* Setting a user's home database
* Defining the access privileges to the remote database
* label:new[Introduced in 2025.06] Setting a default Cypher version for queries to the remote database.
+
Remote database aliases require configuration to safely connect to the remote target, which is described in xref::database-administration/aliases/remote-database-alias-configuration.adoc[Connecting remote databases].
It is not possible to impersonate a user on the remote database or to execute an administration command on the remote database via a remote database alias.

Expand Down Expand Up @@ -482,11 +481,12 @@ For example, the following query creates a remote database alias with the defaul
.Query
[source, cypher]
----
CREATE ALIAS `remote-with-default-language` FOR DATABASE `northwind-graph-2020`
AT "neo4j+s://location:7687"
USER alice
PASSWORD 'example_secret'
DEFAULT LANGUAGE CYPHER 25
CREATE ALIAS `remote-with-default-language`
FOR DATABASE `northwind-graph-2020`
AT "neo4j+s://location:7687"
USER alice
PASSWORD 'example_secret'
DEFAULT LANGUAGE CYPHER 25
----

To view the remote database alias details, including the default language, use the `SHOW ALIASES FOR DATABASE` command with the `YIELD` clause:
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/partials/cypher-versions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

In Neo4j 2025.06, the Cypher language has been decoupled from the Neo4j server versioning and now has its own versioning system.
You can choose between Cypher 5 and Cypher 25.
Cypher 5 is the version that has been in use in Neo4j up to and including version 2025.05.
Cypher 5 is the version that has been in use in Neo4j up to and including version 2025.06.
It will remain the default version for all newly created databases but will not receive new features.
All new features and improvements will be introduced in Cypher 25.
For more information about the Cypher versioning, see link:{neo4j-docs-base-uri}/cypher-manual/25/queries/select-version/[Cypher Manual -> Select Cypher version].
Expand Down