API Questions on Kentico API.
Version 6.x > API > How to get members of group programmatically View modes: 
User avatar
Member
Member
shootermv-gmail - 3/10/2012 3:50:30 PM
   
How to get members of group programmatically
I'm trying to build mie version of GroupMembersViewer. I want to get list of group members through ajax. Now i trying to get users in server code (insede service)
Is there way to get them from API?
( GroupMemberInfoProvider.GetGroupMembers - is not good for me since i need usernames emails, etc
)

Thanks forwards

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/27/2012 3:47:57 AM
   
RE:How to get members of group programmatically
Hello,

Maybe you could use

CMS.Community.GroupMemberInfoProvider.GetCompleteSiteMembers(string where, string orderBy, int topN, string columns);

which returns records with information about members with complete user and site info.

The query which does this method call is:

community.groupmember.selectMemberUsersInSites which uses a view View_Community_Member, where you have all the columns like Email, Username,..

Regards,
Zdenek