cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to retrieve user login name using user email id in Nintex workflow?

How to retrieve user login name using user email id in Nintex workflow?

Tags (1)
0 Kudos
Reply
5 Replies
Not applicable

Re: How to retrieve user login name using user email id in Nintex workflow?

I suspect you need to look at the Call Web Service action, pointing at the user profile service on the server. I haven't actually done this myself, so i'm afraid I don't have a working example, but it might give you a place to start looking...

Accept as Solution Reply
Not applicable

Re: How to retrieve user login name using user email id in Nintex workflow?

You can use the Call Web Service action, in conjunction with the SharePoint REST API, to retrieve information about a site user given a user's email address. The SharePoint User resource (described at https://msdn.microsoft.com/en-us/library/office/dn531432(v=office.15).aspx ) details how to retrieve a user by email address, using the GetByEmail method.

For example, to get a user by email address, call the following REST method, replacing {{Endpoint}} with the SharePoint site collection or site from which to get the user and user%40domain.com with the HTTP-encoded email address of the user.
{{Endpoint}}/_api/web/siteusers/getbyemail(@v)?@v='user%40domain.com'

The SharePoint REST API docs provide several examples that allow you to get user information by login name, user ID, email address, and so on.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: How to retrieve user login name using user email id in Nintex workflow?

Hey Balaji Sampat​, do you mean you are trying to get the DOMAIN\USERNAME  ?  and you have the user.name@domain.com

Accept as Solution Reply
Not applicable

Re: How to retrieve user login name using user email id in Nintex workflow?

right Dan

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: How to retrieve user login name using user email id in Nintex workflow?

try using set variable action

set: account name variable

equals: user profiles

source: account name as login name

when account name

equals: workflow data - the email address saved in a variable

set variable.png

hope this helps

Accept as Solution Reply