Get list of all members in an AD Group?


Userlevel 3
Badge +16

Hi all,

 

I'm trying to help a colleague out with an issue relating to getting a list of UserIDs from an AD Group.

 

My colleague doesnt use K2 and is using scripting VB stuff to try and do it, but because the AD group has more than 1500 members, the methods they are using fails for whatever reason.

 

Can we accomplish this using K2. Can i do a Smartobject method to list all the members of an AD group and somehow export the UserIDs to a Txt file using k2?


3 replies

Badge +9

Hi Sharpharp1,


 


There is a SmartObject called "UMUser > Get Group Users" - this SmartObject takes 2 inputs:


GroupName - The Group you would like to query


LabelName - K2 is the default label name


 


This will return the following properties:


Name


Description


Email


Manager


FQN


 


Regarding the TXT file, you might have to create a K2 Process that contains some C# code to export to K2, or create a custom C# (or VB) application that executes a SmartObject (http://help.k2.com/onlinehelp/K2blackpearl/DevRef/current/default.htm#Working_with_a_SmartObject.html%3FTocPath%3DRuntime%2520APIs%2520and%2520Services%7CSmartObjects%7CSmartObject%2520Client%2520API%7CSmartObject%2520Client%2520Samples%7C_____2)


 


-Jean

Userlevel 3
Badge +16

Same issue happened for me with K2 and also when using vbscripts. It's only returning 1500 members.

Userlevel 5
Badge +18

It looks to be perhaps the default value for "PageSize":


http://stackoverflow.com/questions/11984305/always-getting-1500-member-of-distribution-list-using-powershell


 


What you can try is setting the "size=0" for the URM service and retesting to see if it will return all users:


http://help.k2.com/onlinehelp/k2blackpearl/icg/current/webframe.html#configure_user_role_manager.html

Reply