Skip to main content
Nintex Community Menu Bar

Get all members in a AD-group (by query ldap) - workflow - 2013

  • December 9, 2019
  • 5 replies
  • 907 views

Forum|alt.badge.img+6

I needed to get all members from an AD-group (nintex workflow - Query ldap)

Section Query:

(&(objectCategory=user)    (memberOf=CN=MyGroupName,OU=Groups,OU=Bankdata,OU=Hosting,DC=d101p,DC=bdpnet,DC=dk)

)

 

And what shall I put in 'Property to retrieve' ?

 

Everytime I try - I get no result

 

5 replies

Forum|alt.badge.img+12
  • Scholar
  • December 9, 2019

@bbg ....In my case I'm using 2 LDAP queries.

 

  • First one gets me the list of all the AD groups based on a specific query....Trying using "(&(objectCategory=group)......." instead of "(&(objectCategory=user)...." and I get "SamAccountName" as a collection.
    • Once I get the names of the group, I'm using another LDAP query
      • In this my query is "(SamAccountName={WorkflowVariable:slt_each_Sam_Account_Name})"
      • I then get following attributes as collection:
        • ManagedBy - This gives me the name of the group owner
        • ObjectGUID - This gives me the GUID of the group
        • member - This gives me names of all the members in the group

 

Let me know if this works for you.

 


Forum|alt.badge.img+6
  • Author
  • Novice
  • December 10, 2019

I am new to get information from LDAP so I needed more help :-)

Why do you get a list off AD-group first (I have the name off the group where I needed the members from?

And:

when I try step one : should the query ldap look like this

5878i462046654BCDC0B2.png


Forum|alt.badge.img+6
  • Author
  • Novice
  • December 10, 2019

Or maybe you could sent me the total workflow :-)


Forum|alt.badge.img+12
  • Scholar
  • December 10, 2019

@bbg ....Since you know the name of the group, what if you use below in your LDAP query?

 

(SamAccountName=<Name of your group>)


Forum|alt.badge.img+6
  • Author
  • Novice
  • December 12, 2019

It still not works