Skip to main content
Nintex Community Menu Bar
Solved

Check if user exists in AD Nintex Workflow Cloud

  • October 11, 2023
  • 4 replies
  • 175 views
  • Translate

Forum|alt.badge.img+3

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

View original
Did this topic help you find an answer to your question?

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • 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.

Translate

AnthonyD
Nintex Employee
Forum|alt.badge.img+6
  • Nintex Employee
  • 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

Translate

Forum|alt.badge.img+3

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!

Translate

Forum|alt.badge.img+1
jschmidt7 wrote:

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!

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings