User Info Loader Component

This component pulls information about a site visitor from UB's LDAP directory and will only work for our students and employees.

Place this component on a secure page and set the Page Properties to 'Require SSL'.

The UBCMS is not an appropriate place for ANY regulated private data, such as bank credit/debit card numbers, government-issued ID numbers, health information or computer passwords.

The component after being dropped into a form.

The component after being dropped into a form.

Using This Component

Add the component to the page. There is only one tab.

  • Click on the “+” sign to add a field (“+”changes to a “-” sign so it can be removed). 
  • To make an LDAP parameter available for inclusion on your page, use this syntax:
    • #<variable>=<LDAP parameter>
      e.g. #your_name=displayName
  • Anywhere in your page that you put an HTML snippet with a named element (e.g. #your_name), the text of that HTML element will become the value of the corresponding LDAP variable.
    • From the above example, <h3 id="your_name">text_to_be_replaced</h3> will display an H3 heading with the value of displayName when published.  
  • To use an LDAP parameter in a UBCMS form,
    • Insert a Form container as usual and add the appropriate input fields.
    • Then use this syntax: 
      • input[name=<variable>]=<LDAP parameter>
        (e.g. input[name=emailAddress]=email)
    • For this example, to use an LDAP parameter in a Text Field, set the component values to:
      • Element Name: variable
        (e.g. Element Name: emailAddress)
      • Title: whatever text you wish
  • To use an LDAP parameter with a pre-existing Formstack form,
    • Insert the Formstack component on your page.
    • Right-click on the field you wish to receive the LDAP parameter and select Inspect Element.
    • An inspection window will appear. Look for the highlighted row of code
      (beginning something like '<input type="text" id="field36355541" ...')
      and copy the ID number (e.g. "field36355541").
    • Use that ID number in your User Info Loader component to identify the LDAP parameter you wish to map into the Formstack form element.
  • Each variable must match the value you used in the User Info Loader component for name=<variable>.
    • For this example, emailAddress will automatically pull in their email address.

Make sure to activate all pages to the publisher to test them live.

The component opened for editing.

The component opened for editing.

Available LDAP Parameters

The following parameters are available from LDAP (with an example of the output for Jerod Sikorskyj):

id                   jjs58
path              /home/users/j/jj/jjs/jjs58
displayName  Jerod J Sikorskyj
givenName    Jerod
familyName   Sikorskyj
phone           645-5195
affiliation     staff
department Enterprise Application Services
title             Application Developer
address        108 Fillmore Academic Center


  1. To work properly,
    • This component should be placed on a secure page or under a parent that is a secure page (-pw must be in the URL).
    • The page should be set to run as https://. (In the Page Properties Advanced tab, select the 'Require SSL' setting.)
  2. Because it pulls data from our internal LDAP directory, this component only works for UB students and employees.

Was This Page Helpful?

(so we can thank you or request more details)
( addresses only please)

On this page:

Related Components:

Last Reviewed:

January 29, 2018