Is there any way to add neo4j admin user from console? I found how to change default password for native user neo4j https://neo4j.com/docs/operations-manual/current/configuration/set-initial-password/ but didn't found how to add new admin user.
Asked
Active
Viewed 5,320 times
2 Answers
3
It's not possible with the neo4j-admin
tool, but directly with the cypher-shell
by running those queries (so you need to have a running database):
CALL dbms.security.createUser('root', 'password');
CALL dbms.security.addRoleToUser('admin', 'root');
You will find the description of all security's procedures here : https://neo4j.com/docs/operations-manual/current/security/authentication-authorization/native-user-role-management/procedures/

logisima
- 7,340
- 1
- 18
- 31
-
can I create user before starting neo4j? – kali Dec 07 '17 at 15:10
-
It's not possible for the moment with a built-in tool, but you can manually edit files `auth` and `roles` in the folder `data/dbms` – logisima Dec 07 '17 at 15:23