Skip to main content
Nintex Community Menu Bar

Create AD user - store resulting user

  • Mar 28, 2017 11:50 AM UTC
  • 4 replies
  • 31 views
  • Translate All

Forum|alt.badge.img+7

Hi,

I have list where people enter name, initials, title and so on, and based on that I run a workflow that uses the "Create AD user" action.

Now, what I want to do is to put the newly created user into a "Person or group" field on the same list item that was the basis for the user creation.

My question is: How do I get a hold on the created user in a form that is suitable for an "Set field value" using the "Person or group" field?

Regards

Leif

4 replies

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Apr 10, 2017 3:26 AM UTC

Hi there:

I'd think after creating the AD user, you could query LDAP for the SAMAccountName you just created, retrieve the display name, and put that into a person variable.  You can use the variable formatting to choose what you'd like to display it as, and put that into your SharePoint list people field. ...I think. I have no way of testing at the moment, haha. Hopefully someone will come in and say for sure!

Cheers,

Rhia

Translate

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Jun 15, 2017 9:42 PM UTC

Hi ‌ -- did you get this one figured out?

Cheers,

rhia

Translate

Forum|alt.badge.img+7

Well, yes sort of. In my business case I needed to put the newly created user into an AD group. In the "Add user to AD group action" I could actually just put in the initials of the user in the "User" field of the configuration on the action :-)

Regards

Leif

Translate

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Jun 16, 2017 10:47 PM UTC

Awesome! Good to hear it. If one of the answers in the thread helped you out, please mark it correct - if nothing helped you, feel free to mark your own as correct happy.png 

Cheers!

rhia

Translate