Automate Balance Updates in PaperCut

A few days ago one of our resellers came to us with an interesting problem. They have a customer who is using the multiple personal accounts feature in PaperCut and they wanted to automate balance updates if the balance went under a certain amount. Updating the balance after so many days have passed works for lots of users, however, this wasn’t the case for our customer.

PaperCut has a very handy quota scheduling feature but it works on days rather than the amount. This, in most cases, would be fine. It can also be done manually by using the bulk user actions but you can’t automate it.

PaperCut has a handy quota scheduling feature for automating balances. It works by updating the balance on a set date, rather than updating the balance after it has reached a certain balance – updating the balance after so many days has passed works for lots of users, however, this wasn’t the case for our customer. This can also be done manually by using the bulk user actions, but… you can’t automate it.

As per usual, we took the request and had a think about it, then broke it down into smaller parts that we could work with:

  1. Get the user’s current balance for an account
  2. Compare it to a threshold
  3. Top the account up to a certain amount

The server command application has a useful option to get a user’s account balance and also has an argument for an account name if you are using multiple personal accounts.

We can also top up an account by using the server command and leave a comment so that the admin can see where the balance increase came from… which looks something like:

So, we have the balance for the account and we know how to adjust an account balance… Now, all that is left is to compare the account balance with a threshold and put everything together. This gives us the scripts below which can be scheduled using whatever options your OS of choice has.



If you need a hand implementing this command, get in touch with the team!

You can check out some of our other tips on PaperCut scripts below – if you would like to discuss a custom script that you’d like to implement, we’d love to hear from you.

Pepermint integrations

Granting temporary access to printers

Mobility print from Ubuntu client

Latest News from Jonathan Bennetts

PaperCut and Access Management

Access Management and Identity as a Service (IDaaS) solutions for PaperCut...

Written by: Jonathan Bennetts


PaperCut ends client support for 32-bit operating syst...

A long time ago, in a country far far away... PaperCut announced they were...

Written by: Jonathan Bennetts



Having dealt regularly with Selectec for many years now, I find the experience a pleasurable and stress free one their staff often exceed our expectations whether it’s assistance with a sales enquiry or a sticky technical issue a fast hassle free solution is always available, I look forward to many more successful years in dealing with them

Duncan Rootes ISL Digital
Back to Top ↑