When an employee leaves the company his ActiveDirectory's account is disabled, the card is sometimes given to other person and if the new owner swipes it over a reader, then there is no way for automatic registration as the card is still hold for no longer active but still valid Blueprint account.

So, the idea is to run nightly a procedure to unlink or rather to move the card to fake account of type 0=Employee.

Attached is all the code.

1. openLDAP is used to get disabled accounts of the last 3 days

2. joined with all the accounts\cards view to get a new table containing cardIDs to unlink and fake accounts [postfix _disabled]

I've worked on a similar request from another client during which we developed a small command line tool that can be used to disassociate any / all badges registered to a list of user IDs. Basically, you provide a single column text file containing the list of departed user IDs. The command line tool is then executed against that list. The process may be automated through use of Windows task scheduler and a basic batch command.

Below is a URL from which you may download a zip file containing the command line tool. The zip file also contains a readme that details its usage. Please be aware that this was developed and tested against Blueprint 5.2 Service Pack 3.

You can 'deregister' badges using its card ID through use of Blueprint's built-in Identifier Translation Data import. You will create an import file that lists each card ID and assigns its owner as itself. An example import file would look like this:

2, 123456, 2, 123456

2, 234567, 2, 234567

2, 345678, 2, 345678

Where 123456, 234567, and 345678 are the card IDs that will be deregistered.

For more information regarding this data import type, please refer to the Blueprint Configuration Guide.