code: public Set<DuracloudUser> getAccountUsers(AccountInfo account) {
  
          DuracloudRightsRepo rightsRepo = repoMgr.getRightsRepo();
          List<AccountRights> acctRights =
              rightsRepo.findByAccountId(account.getId());
  
          Set<DuracloudUser> users = new HashSet<>();
          for (AccountRights rights : acctRights) {
              DuracloudUser user = rights.getUser();
              //ensure account is loaded.
              rights.getAccount();
              // make sure only the rights for this account are set
              Set<AccountRights> accountOnlyRightsSet = new HashSet<>();
              accountOnlyRightsSet.add(rights);
              user.setAccountRights(accountOnlyRightsSet);
              users.add(user);
          }
  
          List<DuracloudUser> rootUsers =
              repoMgr.getUserRepo()
                     .findByRootTrueAndEnabledTrueAndAccountNonExpiredTrueAndCredentialsNonExpiredTrueAndAccountNonLockedTrue();
  
          users.addAll(rootUsers);
          return users;
      }
docs: Retrieves the users associated with the account
  
  @param account for which users should be gathered
  @return the set of users associated with an account