Auth.Domain domain = findDomainWithAdminRole();
if (domain == null) {
throw new WebApplicationException(Status.FORBIDDEN);
}
Users response = new Users();
response.users = Lists.newArrayList();
for (UserData data : authRepository.getUsers().list()) {
if (data.getDomainId() != domain.getId()) {
continue;