diff --git a/AllInOneRunner/pom.xml b/AllInOneRunner/pom.xml
index d1cabc29a..a7f581171 100644
--- a/AllInOneRunner/pom.xml
+++ b/AllInOneRunner/pom.xml
@@ -9,11 +9,11 @@
all-in-one-runner
AllInOneRunner
-
+
eu.neclab.ngsildbroker
entity-manager
diff --git a/EntityManager/src/main/java/eu/neclab/ngsildbroker/entityhandler/controller/EntityBatchController.java b/EntityManager/src/main/java/eu/neclab/ngsildbroker/entityhandler/controller/EntityBatchController.java
index e36db488f..426a033ca 100644
--- a/EntityManager/src/main/java/eu/neclab/ngsildbroker/entityhandler/controller/EntityBatchController.java
+++ b/EntityManager/src/main/java/eu/neclab/ngsildbroker/entityhandler/controller/EntityBatchController.java
@@ -257,6 +257,7 @@ public Uni> deleteMultiple(HttpServerRequest request, Strin
}
@POST
@Path("/merge")
+ @RolesAllowed({"Factory-Admin", "Factory-Editor", "Factory-Writer"})
public Uni> mergeMultiple(HttpServerRequest request,
List