@{
var membersInMemberGroup = ApplicationContext.Current.Services.MemberService.GetMembersByGroup("IT Member");
foreach(var member in membersInMemberGroup.OrderBy(x => x.Name)){
@member.Name
}
}
But w'ere experiecing that looping over members that way and reading properties is extremely slow. Which is why I wanted to do that using Examine instead.
The way you're describing is how our application works currently.
Reading MemberGroups from properties
I'm meddling around with Examine.
I've come to a point where I need to find a list of members belonging to a specific membergroup.
The question now is, are there any properties I can use with Examine, to search and thereby filter members på membergroup?
Hi Nicholas,
You can use the Member service to to find a list of members belonging to a specific membergroup. Try to see the method called .GetMembersByGroup
https://our.umbraco.org/DOCUMENTATION/Reference/Management-v6/Services/MemberService
Hope this helps,
/Dennis
I know that.
But w'ere experiecing that looping over members that way and reading properties is extremely slow. Which is why I wanted to do that using Examine instead.
The way you're describing is how our application works currently.
Hi Nicholas, have you found any solution? I think we need a helper that get all members from cache like the content helper instead of querying the db.
is working on a reply...