With recent changes to Exchange Online, the ExpandDL functionality has been added to the makeEwsRequestAsync function. As such this function, which was previously “advertised” in easyEws (but marked as **DO NOT USE**), now functions as designed.
To use the new function:
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
easyEws.expandGroup(groupName, function(users) { | |
/** @type {string} */ | |
var listOfUsers = ""; | |
users.forEach(function(user, index){ | |
listOfUsers += user.Name() + ";"; | |
}); // forEach | |
console.log(listOfUsers); | |
}); |
NOTE: AS of this writing (2/27/2018), this is NOT supported in Exchange 2016 (on-prem). It is to be released with CU9.
The update is posted to GitHub here: https://github.com/davecra/easyEWS.
You can also get v1.0.9 via NPM with the command: “npm update easyews”