Skip to content

Instantly share code, notes, and snippets.

@mccbryan3
Created November 14, 2019 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mccbryan3/65ca522918981d64b59e5773edf166a5 to your computer and use it in GitHub Desktop.
Save mccbryan3/65ca522918981d64b59e5773edf166a5 to your computer and use it in GitHub Desktop.
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