code: def disable_user(cls, username):
          
          cls.update_roles(username, [])
          ret = cls.exec_request('user/{}'.format(username), 'put', account_status=0)
          logger.debug(ret)
          if cls._response_ok(ret):
              logger.info("Disabled SeAT user with username %s" % username)
              return username
          logger.info("Failed to disable SeAT user with username %s" % username)
          return None
docs: Disable user