def set_account_privileges(username, privileges)
      response = rest_get('/redfish/v1/AccountService/Accounts/')
      accounts = response_handler(response)['Items']
      id = '0'
      accounts.each do |account|
        if account['Oem']['Hp']['LoginName'] == username
          id = account['Id']
          break
        end
      end
      new_action = {
        'Oem' => {
          'Hp' => {
            'Privileges' => privileges
          }
        }
      }
      response = rest_patch("/redfish/v1/AccountService/Accounts/#{id}/", body: new_action)
      response_handler(response)
      true
    end
def set_account_privileges(username, privileges)
      response = rest_get('/redfish/v1/AccountService/Accounts/')
      accounts = response_handler(response)['Items']
      id = '0'
      accounts.each do |account|
        if account['Oem']['Hp']['LoginName'] == username
          id = account['Id']
          break
        end
      end
      new_action = {
        'Oem' => {
          'Hp' => {
            'Privileges' => privileges
          }
        }
      }
      response = rest_patch("/redfish/v1/AccountService/Accounts/#{id}/", body: new_action)
      response_handler(response)
      true
    end
Set the privileges for a user
 @param [TrueClass, FalseClass] username
 @param [Hash] privileges
 @option privileges [TrueClass, FalseClass] :LoginPriv
 @option privileges [TrueClass, FalseClass] :RemoteConsolePriv
 @option privileges [TrueClass, FalseClass] :UserConfigPriv
 @option privileges [TrueClass, FalseClass] :VirtualMediaPriv
 @option privileges [TrueClass, FalseClass] :VirtualPowerAndResetPriv
 @option privileges [TrueClass, FalseClass] :iLOConfigPriv
 @raise [RuntimeError] if the request failed
 @return true