@RequestMapping(value = "/users/{username}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)
@PreAuthorize("hasAuthority('ADMIN')")
@Audit
public synchronized RestResponse<List<UserDTO>> revokeUserAccess(@PathVariable String orchestratorId, @PathVariable String locationId,
@PathVariable String resourceId, @PathVariable String username) {
<BUG>LocationResourceTemplate resourceTemplate = locationResourceService.getOrFail(resourceId);
hasAuthorizationOrFailed(resourceTemplate, Subject.USER,  new String[] { username });

resourcePermissionService.revokePermission(resourceTemplate, Subject.USER, username);</BUG>
List<UserDTO> users = LocationSecurityController.convertListUserToListUserDTO(resourcePermissionService.getAuthorizedUsers(resourceTemplate));

@RequestMapping(value = "/users/{username}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)
@PreAuthorize("hasAuthority('ADMIN')")
@Audit
public synchronized RestResponse<List<UserDTO>> revokeUserAccess(@PathVariable String orchestratorId, @PathVariable String locationId,
@PathVariable String resourceId, @PathVariable String username) {
Location location = locationService.getLocation(orchestratorId, locationId);
hasAuthorizationOrFailed(location, Subject.USER,  new String[] { username });
LocationResourceTemplate resourceTemplate = locationResourceService.getOrFail(resourceId);
resourcePermissionService.revokePermission(resourceTemplate, Subject.USER, username);
List<UserDTO> users = LocationSecurityController.convertListUserToListUserDTO(resourcePermissionService.getAuthorizedUsers(resourceTemplate));
