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
Hey Guys,
I am wondering if there is a way how to get all members including their assigned member groups (roles)?
The method GetAllMembers in the MemberService retrieves all members, but when I iterate the members, the property "Groups" is null:
I need to sort the members, based on their assigned groups, and this is only doable, if i know the assigned groups of the retrieved members.
Hi Dee,
you can try it with this:
var groups = Current.Services.MemberService.GetAllRoles(member.Id);
It's a seperate call for every Member. I hope this will help you!
you can also use the standard .net roles etc
var roles = Roles.GetAllRoles(); foreach (var role in roles) { var usersinrole = Roles.GetUsersInRole(role); }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get All Members including their assigned Member Groups (Roles)
Hey Guys,
I am wondering if there is a way how to get all members including their assigned member groups (roles)?
The method GetAllMembers in the MemberService retrieves all members, but when I iterate the members, the property "Groups" is null:
I need to sort the members, based on their assigned groups, and this is only doable, if i know the assigned groups of the retrieved members.
Hi Dee,
you can try it with this:
It's a seperate call for every Member. I hope this will help you!
you can also use the standard .net roles etc
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.