code: def get_user(self, username):
          
          cmd = ["glsuser", "-u", username, "--raw"]
          results = self._read_output(cmd)
  
          if len(results) == 0:
              return None
          elif len(results) > 1:
              logger.error(
                  "Command returned multiple results for '%s'." % username)
              raise RuntimeError(
                  "Command returned multiple results for '%s'." % username)
  
          the_result = results[0]
          the_name = the_result["Name"]
          if username.lower() != the_name.lower():
              logger.error(
                  "We expected username '%s' but got username '%s'."
                  % (username, the_name))
              raise RuntimeError(
                  "We expected username '%s' but got username '%s'."
                  % (username, the_name))
  
          return the_result
docs: Get the user details from MAM.