O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Users management

Admins can create new users in the Neo4j browser with this command, which brings up a user interface:

:server user add

Give a name, role, and password to the new user. Check whether the creation worked by viewing the list of users with the following command:

:server user list

From this list, it is possible to disable or delete a user.

Of course, you are not forced to use a web UI with inputs and buttons. There are more built-in procedures to manage users, accessible via the Neo4j browser or via the Cypher shell:

Create a user

CALL dbms.security.createUser(usernamepasswordrequirePasswordChange)

Delete a user

CALL dbms.security.deleteUser(username​)

Assign a role to a user

CALL dbms.security.addRoleToUser( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required