img

Grant temporary access to printers using PaperCut


How do I grant temporary access to company printers?

 

One of our resellers recently came to us with an interesting problem. They wanted to provide temporary access to ID cards for users that had forgotten or lost their own, and automatically remove the card number from PaperCut on a date the admins can pick when issuing the cards. This enables staff to carry on using the office’s printing facilities until they were able to find their existing card, or until they had replaced it with a new one.

 

This is how we helped the reseller, and hopefully, you’ll find it useful too!

 

Where did we start?

Let’s start by breaking it down into digestible chunks, so that we can see what the task entails. There were three parts in this case.

  1. Issuing temporary cards
  2. Automatically removing the card number from an account
  3. Allowing the admin or card issuer to set an expiration date

 

Issuing temporary cards

The first part is fairly simple to handle. PaperCut can be set to self-associate new cards with the secondary ID field, or as the cards are temporary the admin can put this value into the field manually.

 

Automatically removing card numbers

Removing the card number automatically from an account and setting an expiration date is the next task that we need to tackle. You can use the scheduling abilities of your OS API or a server command to do this. In our example we’ve used Powershell, this would look something like the example below which removes the secondary ID for all users.

 

 

Set an expiration date

This now leaves us with the last part. How do we add an expiration date to this? We need somewhere where an admin can input a date and if needed, change it. To do this we settled on using the notes field under the users and a format of dd/mm/yyyy so if they wanted the card to expire on 30th November 2018 they would input 30/11/2018.

Now, all we need to do is update the script to look at the notes field and compare it to the date the script is running and if it is that day or before remove the ID number.

 

Powershell

Bash

 

This same theory could be used for guest users. You could create an internal user in PaperCut for guests so they could use Web Print or Mobility Print; put an expiration date into the notes field, and delete the user on the day. The examples below assume you are using a prefix of guest- for all of your guest users and the dd/mm/yyyy format for the expiration dates.

 

Powershell

Bash

 

As you can see, with a bit of planning, you can provide temporary access to ID cards for your users.

If you have a task that you need a little help with, get in touch with our team who will be happy to help out.

Latest News from Jonathan Bennetts
img

How do you bulk delete printers in PaperCut?

We get asked fairly often if it's possible to quickly delete printers from Pap...

Written by: Jonathan Bennetts

More
img

Automate Balance Updates in PaperCut

A few days ago one of our resellers came to us with an interesting problem. T...

Written by: Jonathan Bennetts

More

img

Since we started working with selectec and using papercut 7 years ago we have found the product and the support team excellent, long may the relationship continue

Simon Riley Direct-tec
Back to Top ↑