18 Apr 2012
11 Jul 2013
Link to this post
The Sitefinity UserManager.GetUsers method is based on an IQueryable<User> interface, however, it seems that the implementation is not passing thru lambda or linq query parts like Where, OrderBy, etc and instead returning every row. We are using the LdapUsers provider. In order to apply any filter we must first cast the IQueryable to a ToList() like:
var ul = userManager.GetUsers().ToList().Where...OrderBy...
Please fix this so the GetUsers implementation fully implements the IQueryable interface and respects the filters, etc. (does not return every row).