Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
arr_groups = new Array()
System.log("Name Starts With: " + nameStartsWith)
System.log("Running active Directory Search")
var groups = ActiveDirectory.search("UserGroup", nameStartsWith)
for (var i in groups) {
System.log("building group array : " + groups[i].name)
arr_groups.push(groups[i].name)
}
return arr_groups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.