code: def get_projects_in_user(self, username):
          
          cmd = ["list", "assoc", "where", "user=%s" % username]
          results = self._read_output(cmd)
  
          project_list = []
          for result in results:
              project_list.append(result["Account"])
          return project_list
docs: Get list of projects in user from Slurm.