def get_account_privileges(username)
      response = rest_get('/redfish/v1/AccountService/Accounts/')
      accounts = response_handler(response)['Items']
      accounts.each do |account|
        if account['Oem']['Hp']['LoginName'] == username
          return account['Oem']['Hp']['Privileges']
        end
      end
    end
def get_account_privileges(username)
      response = rest_get('/redfish/v1/AccountService/Accounts/')
      accounts = response_handler(response)['Items']
      accounts.each do |account|
        if account['Oem']['Hp']['LoginName'] == username
          return account['Oem']['Hp']['Privileges']
        end
      end
    end
Get the Privileges for a user
 @param [String, Symbol] username
 @raise [RuntimeError] if the request failed
 @return [Hash] privileges