Issue with LdapUsers based GetUsers method

Posted by Community Admin on 03-Aug-2018 13:27

Issue with LdapUsers based GetUsers method

All Replies

Posted by Community Admin on 11-Jul-2013 00:00

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).

Thanks...Bob Baldwin
Trabon Group

This thread is closed