Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am working on a Umbraco 7 site and want to show members on the front end of the site.
The list of members shown is according to the chosen membergroup.
Example:user a is a member of membergroup 1 and 2user b is a member of membergroup 1
When I filter on membergroup 1 I only want to see user a
I found the code to list all groups: memberService.GetAllRoles();And also the code to list all member: memberService.GetAllMembers();
The issue is to filter like .GetAllMembers().Where(group=1) or something like that.Is this possible?
How about using the GetMembersByGroup method?
e.g.
memberService.GetMembersByGroup("groupname")
That's what I was looking for.
Thank's for the fast reply!
Great!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Filtering Members by membergroup
I am working on a Umbraco 7 site and want to show members on the front end of the site.
The list of members shown is according to the chosen membergroup.
Example:
user a is a member of membergroup 1 and 2
user b is a member of membergroup 1
When I filter on membergroup 1 I only want to see user a
I found the code to list all groups: memberService.GetAllRoles();
And also the code to list all member: memberService.GetAllMembers();
The issue is to filter like .GetAllMembers().Where(group=1) or something like that.
Is this possible?
How about using the GetMembersByGroup method?
e.g.
That's what I was looking for.
Thank's for the fast reply!
Great!
is working on a reply...