User Info Loader Component

Pulls LDAP details about the submitter (only UB constituents).

On this page:

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

Note: all form field names must be unique

For example, if you build your form by copying a component (e.g. to add a second Text Field), be sure to change the ID.

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:
    • <selector>=<LDAP parameter>
    • e.g. #your_name=displayName
  • Anywhere in your page with a matching selector, such as an element with an ID 'your_name' in an HTML snippet, the text of that HTML element will become the value of the corresponding LDAP parameter.
    • 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.
    • Switch to Preview mode and 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").
    • Then use that ID number with a leading "#" in your User Info Loader component to identify the LDAP parameter you wish to map into the Formstack form element (e.g. "#field36355541=displayName").
  • 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 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 Information Helpful?

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

This feature works comparably in both the Classic and Flex UI versions of the UBCMS. In the future, screenshots and language will be updated to reflect Flex UI.

Related Components:

Last Reviewed:

May 5, 2021