# Get user information with username

**URL:** <https://discuss.workflowgen.com/t/get-user-information-with-username/983>\
**Category:** Workflow Applications\
**Created:** [March 7, 2018, 11:10pm UTC](https://discuss.workflowgen.com/t/get-user-information-with-username/983 "2018-03-07T23:10:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [March 7, 2018, 11:10pm UTC](https://discuss.workflowgen.com/t/get-user-information-with-username/983/1 "2018-03-07T23:10:37Z")

</div>

Is there an easy way to get a user’s information (first name, last name, etc) from a workflow application using the username and set some process data variables?

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [March 9, 2018, 3:17pm UTC](https://discuss.workflowgen.com/t/get-user-information-with-username/983/2 "2018-03-09T15:17:10Z")

</div>

Hi,

An easy way would be to use GraphQL (only available on WorkflowGen version 7+):

You can test the following query by using the interface GraphIQL in `http://YOURSITE/wfgen/graphql`:

```auto
{
  user(userName: "eddy") {
    firstName
    lastName
  }
}

```

Consult the documentation on the right side of the page if you would like to add more fields to the query.

Once you are satisfied with the query, you can send an HTTP request with valid Network Credentials in your workflow application like the following:  
`http://YOURSITE/wfgen/graphql?query={user(userName: "eddy") {firstNamelastName}}`

The response will be a JSON formatted string which will contain the results (first name / last name etc.)

Best Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [March 10, 2018, 3:37am UTC](https://discuss.workflowgen.com/t/get-user-information-with-username/983/3 "2018-03-10T03:37:29Z")

</div>

That is what I am doing. I was hoping on a Workflow Application so that I can add an action in the workflow that would update data variables from the user info.

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [March 12, 2018, 2:05pm UTC](https://discuss.workflowgen.com/t/get-user-information-with-username/983/4 "2018-03-12T14:05:31Z")

</div>

Hi,

To update the user info, you can use the SOAP Web Service API that will be called in your custom workflow application:  
[http://docs.workflowgen.com/v78/api/html/a35a053d-4ae8-b1f6-d478-734b7e9685aa.htm](http://docs.workflowgen.com/v78/api/html/a35a053d-4ae8-b1f6-d478-734b7e9685aa.htm)

Best Regards,  
Eddy.
