Skip to main content
Nintex Community Menu Bar
Solved

Check if user exists in AD Nintex Workflow Cloud

  • October 11, 2023
  • 4 replies
  • 233 views

Forum|alt.badge.img+4

I have a form where the user entered their email address. The form data goes into SharePoint online. I want to check that the email entered is a valid AD user account. If I test it by entering an invalid email, the “Get User Details” crashes the workflow with an error. Is there a way to check a return code from this action or is there another action that will work?

Best answer by AnthonyD

Hello @jschmidt7 ,

Try using the query users, return the first record and save the output. You can then query the count, if 1, then the user exists, otherwise if 0 it doesn’t.
 

 

Hope this helps you out,

Anthony

4 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • October 11, 2023

Hi @jschmidt7,

Are you not able to use a people picker field on the form?  That way you will know for sure that they are a valid user.


AnthonyD
Nintex Employee
Forum|alt.badge.img+6
  • Nintex Employee
  • Answer
  • October 11, 2023

Hello @jschmidt7 ,

Try using the query users, return the first record and save the output. You can then query the count, if 1, then the user exists, otherwise if 0 it doesn’t.
 

 

Hope this helps you out,

Anthony


Forum|alt.badge.img+4
  • Author
  • Rookie
  • October 12, 2023

Thank you @AnthonyD and @SimonMuntz for your responses. Both great answers, but we have not wired our Azure AD environment to Nintex Cloud. I will use the count for now until/if we get to use that and then switch to the People Picker control.

 

Thanks again!


Forum|alt.badge.img+1
  • Rookie
  • February 19, 2024

Thank you @AnthonyD and @SimonMuntz for your responses. Both great answers, but we have not wired our Azure AD environment to Nintex Cloud. I will use the count for now until/if we get to use that and then switch to the People Picker control.

 

Thanks again!

Hey there, I’d love to hear about an update on this work you’re doing. Did you implement any of these options and how did they work for you?

We’re facing a similar situation and considering our options :)

Cheers!