Created
November 14, 2019 22:33
-
-
Save mccbryan3/65ca522918981d64b59e5773edf166a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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