how I can use Orchard.Users module in my own module?

Topics: Administration, Customizing Orchard, General, Writing modules
Oct 27, 2011 at 9:41 AM


I want to get data about current user in my NEW CREATED OWN module.


var users = _orchardService.ContentManager.Query<UserPart, UserPartRecord>();

But this doesn't work.

Any help appreciated.



Oct 27, 2011 at 2:26 PM

To get current user you can just go thru WorkContext. That Query should return all users (in what way doesn't it work?)