You are viewing limited content. For full access, please sign in.

Question

Question

Pull Name of Logged In User into Forms Field

asked on February 3, 2014

We are currently working on creating an intranet for our organization so we can make sure that when users are filling out specific forms they are an authorized user.

 

We would like to be able to see who the user is logged in as and populate a form field that will then pre-populate information based on that username. We will be using Joomla for the Intranet piece. Has anyone done anything like this for their organization and could give me some tips on how to retrieve the username?

3 0

Answer

SELECTED ANSWER
replied on March 17, 2014

I was able to accomplish with our Joomla installation by installing a module called Sourcerer to grab the Joomla user object and passing that through a URL to Forms.

1 0
replied on June 4, 2014

Hi Blake,

 

Does the URL that is passed to Forms include the logged-in username in plain text?  Could it be possible for someone to copy that URL, and change the username to someone else to impersonate another staff member?  What steps have you taken to prevent this behavior from happening?

 

Thanks!

0 0
replied on June 4, 2014

It contains the users email address in plain text which we are then performing a database lookup to pull the rest of the employees information. I am working on some JavaScript so that when the link is clicked it will open a new window and disable the address bar of the browser.

 

The other method I'm thinking of trying is when embedding it into a web page, trying to pass the user information. I haven't quite figured that one out yet though.

1 0

Replies

replied on February 20, 2014

Hi Blake,

 

   I apologize, your contact information was passed to me late last week.  I developed the process for FISD.  I will reach out to you tomorrow to see if I can be of assistance.

 

   To be clear to those who are trying to help you here, the authentication process is completely outside of LF Forms.  It would be more correct to say LF Forms is a consumer of the process.

2 0
replied on January 12, 2018

HI Curtis,

 

Is there any way you can reach out to me to explain your authentication process? I'm not sure how that would happen...

 

Thanks!

0 0
replied on February 3, 2014

Sorry for not being very clear. At the LF Conference this year I attended a class put on by another K-12 SD and they talked about how they created a portal that authenticated with Active Directory for their employees to login to. They then pulled the logged in user information from that portal to populate information in Forms. We are in need of doing the same thing and are just looking for some suggestions or solutions for doing this.

1 0
replied on February 3, 2014

The school district that I was referring to is Frisco Independent School District.

2 0
replied on February 27, 2014

I believe one of our PS team members was using the computer name or device name and ingested that into the name field.  Then did a DB look up to validate the user. Would this help or do you want our PS rep to include more into.

0 0
replied on February 3, 2014

What you are asking is not very clear. Do you mean this mechanism to be an alternative to the native authentication method in Laserfiche Forms?

0 0
replied on February 3, 2014

If you use Forms 9.1, you can set the default value of any field to a token. This can even be the logged in user.

0 0
replied on February 3, 2014

In Forms 9.1, there is an in-built token for the current user who is signed in:

 

{/_currentuser}

So you can potentially use this token if the Laserfiche Forms username is integrated with their intranet and active directory.

 

If you're planning on writing a separate application for retrieving the Windows username, the following call can be used in your application (C#):

 

var username = System.Web.HttpContext.Current.User.Identity.Name;

 

0 0
replied on February 3, 2014

It would be a public user that authenticates to the Intranet, so there is no authentication to LF Forms.

1 0
replied on November 7, 2014

Did you ever find a solution to this?  I have a similar situation with a public portal.

0 0
replied on November 7, 2014

We found a solution to this for our Joomla intranet. What application are you looking at grabbing the information from?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.