diff --git a/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java b/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java index 4bdc60c89c..da02acc516 100644 --- a/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java +++ b/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java @@ -210,10 +210,10 @@ public UserRecord updateUser(int id, UserRecord providedUser, UriInfo ui, log.warn("CALLED updateUser({})", providedUser.getUserName()); var adminUser = security.getUserPrincipal().getName(); providedUser.setUserId(null); - var ub = ui.getBaseUriBuilder().path(DESCRIBE_GROUP); + var ub = ui.getBaseUriBuilder().path(DESCRIBE_USER); return userManager .updateUser(id, providedUser, adminUser, - m -> ub.build(m.getGroupId())) + m -> ub.build(m.getUserId())) .orElseThrow(AdminImpl::noUser).sanitise(); }