User Info Loader Component

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

On this page:

Last reviewed: May 13, 2022

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.

Using This Component

This component has only one tab.

Because it draws information about the user from UB's LDAP directory, the user must be a UB constitutent and logged in through Shibboleth. The component thus must be in a secure part of the site.

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

Technical Restrictions

  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.

Configure - Main Settings

  • 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.

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
email            jjs58@buffalo.edu
affiliation     staff
department Enterprise Application Services
title             Application Developer
address        108 Academic Center

Was This Information Helpful?

(Required)
(Required)
(so we can thank you or request more details)
(Required)
(buffalo.edu addresses only please)
(Required)