When using the example by StefanBauer, I noticed that I was only getting back users. After some debugging I realized that the principal type was not being passed correctly and was always using the default "User". I had to change SPPrincipalType: "SPPrincipalType.User" line to principalType: "User". I was then able to use the [None | User | DistributionList | SecurityGroup | SharePointGroup | All] options.
↧