Active Directory and LDAP can be leveraged to enable automated importation of a staff list into VisitorRego.

If the VisitorRego
unit is not connected to your network, an AD update utility can be used on a
machine or server that is domain connected. The utility retrieves Active
Directory user information for specified queries and sends the data to the
VisitorRego remote API or an SQL database depending on how it is configured.
The AD update utility can also be configured to retrieve user information from
a CSV file.

If the VisitorRego unit
itself is authenticated against your domain or connected to your network, please see here for information on AD integration through the software itself.
To use the ADUpdate utility, the machine or server you are using to run the program will need to be able to communicate with both your Active Directory, and the VisitorRego Facilities server or database depending on how it is configured.
The utility ADUpdate.exe and command file can be obtained by contacting the VisitorRego support team.
ADUpdate can be
configured in a number of ways:
Read
from AD and write staff details to the VisitorRego Facilities Server
ADUpdate
is run on a machine or server that is domain connected (so it can read AD) and
is able to write to the VisitorRego Facilities server (https://facilities.visitorrego.com/). The VisitorRego unit synchronises with
the Facilities server to refresh the locally held staff list.
Read
from AD and write staff details to the VisitorRego SQL database
ADUpdate
is run on a machine or server that is domain connected (so it can read AD) and
is able to write to the VisitorRego SQL database.
Read
from a CSV file and write staff details to the VisitorRego Facilities Server
ADUpdate
reads a CSV file at a specific location and writes to the VisitorRego Facilities
server (https://facilities.visitorrego.com/). Your system administrator or IT specialist would need to write a
process to create a CSV file which needs columns in a specific order. The VisitorRego unit synchronises with the Facilities server to
refresh the locally held staff list.
Read
from a CSV file and write staff details to the VisitorRego SQL database
ADUpdate
reads a CSV file at a specific location and writes to the VisitorRego SQL
database. Your system administrator or IT
specialist would need to write a process to create a CSV file which needs
columns in a specific order.
A batch script is used with ADUpdate which looks at specific parameters to load staff. The batch script is a .cmd file typically named ADUpdate_Facilities.cmd. Please contact the VisitorRego support team for a copy of this file.
If you edit the .cmd file with Notepad, you will see the following parameters that ADUpdate accepts:
"C:\Program Files (x86)\VisitorRego.NET\ADUpdate.exe"
Specifies the location path
of ADUpdate.exe.
SiteID=
This is the SiteID that staff will be loaded into. SiteID
"0" is the Site where in a multi-site database, all staff are loaded
and referenced by all sites - Load Staff Across All Sites. If you are loading
to a specific site then you need to know the SiteID from the site table in the
database.
ADDomain=
Specifies the name of the AD domain (e.g.
dc=visitorrego,dc=co,dc=nz). You can also include ou’s.
LDAPQ=
Specifies the LDAP query (e.g. (objectClass=user)).
FACILITIES=
YES= specifies that
you are writing staff to the Facilities server.
FACILITIESSERVER=
Specifies the facilities server URL https://facilities.visitorrego.com/.
UIDKEY=
Specifies your site specific unique identification key. Please contact the VisitorRego support team for this.
DELETE=
YES= when
finished loading staff, delete any staff records that haven't been updated.
This allows you to run ADUpdate any number of times with "DELETE=NO"; then on the last run
specify "DELETE=YES"
to delete staff that are no longer in the Active Directory.
LOGGING=
YES= writes
logging information to the Windows Application log file.
PROXYSERVERURI=
Specifies the proxy server network URI (if applicable).
PROXYSERVERUSER=
Specifies the proxy server user name credentials (if
applicable).
PROXYSERVERPASSWORD=
Specifies the proxy server password credentials (if
applicable).
PROXYSERVERDOMAIN=
Specifies the proxy server domain (if applicable).
In this section we list the steps for using ADUpdate to read from AD and write staff details to the VisitorRego Facilities server.
Follow the steps below to configure and run ADUpdate from a
domain connected machine or server:
Once you are able to
load staff successfully using ADUpdate you can automate the process as a background task using Windows Task Scheduler. Follow the
steps below to do this:
Once you've
completed the steps, the task will be saved, and it'll run automatically on the
schedule you specified.