@UserFunction does not allow <Node>.setProperty in Desktop 3.4.1 Enterprise


(Irler) #1

Extending Neo4j in Java (@UserFunction...) does not allow adding properties.
...
node.setProperty("value",Double.toString(num));
....
error message:

org.neo4j.graphdb.security.AuthorizationViolationException: Token create operations are not allowed for user 'neo4j' with roles [admin] restricted to READ

read-access works perfectly
How can I change my role or add WRITE permission?
Thanks


(Michael Hunger) #2

Functions only have read access for write access you have to use a @Procedure(mode=WRITE)