cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

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

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

 

Labels: (1)
0 Kudos
Reply
5 Replies
Highlighted
Automation Master
Automation Master

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

@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.

 

0 Kudos
Reply
Highlighted
Nintex Newbie

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

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

2019-12-10 08_06_40-Workflow Designer.png

0 Kudos
Reply
Highlighted
Nintex Newbie

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

Or maybe you could sent me the total workflow :)

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

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

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

 

(SamAccountName=<Name of your group>)

0 Kudos
Reply
Highlighted
Nintex Newbie

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

It still not works

0 Kudos
Reply