Hi Ganesan,
What version of EPiServer are you reffering to?
On the first question. Do you only want to list a user that has some specified access rights set on the user?
Hi Sebastian,
Thanks for your reply.
Right now i'm using EPI Server CMS 5.
Here i would like to get the users list, like which are all the users are belongs to the particular user group.
For example i have the user groups like Web Admin, Web Editor and Reader and i have assigned to some users also. Now i want to retrive the users whose belongs to the Readers group or Web Editors group.
Currenlty i'm using the ACL to retirve the User Groups. here is the code for it.
foreach (RawACE ace in pdRoles.ACL.ToRawACEArray())
{
ListItem lstItem = new ListItem();
lstItem.Text = ace.Name.ToString();
chklstUserGroups.Items.Add(lstItem);
}
This is the way i'm getting the User Groups, like that is there anyother way to retirve the User Names which belongs to the User Groups of a Page.
How can i get it? guide me..
string[] usersInRole = Roles.GetUsersInRole(group);
foreach (string sUser in usersInRole)
{
MembershipUser user = Membership.GetUser(sUser);
}
HI
I am using the default EPiserver 6 templates. I havea similar requiremt. COuld you please let me know the namespaces for Roles and Membership user as the above des not seem to work for me.
Thanks
Sandeep
Roles and Membership reside in System.Web.Security.
Edit: And of course MembershipUser as well.
How can we listout the user which are belogs to the ACL?
Is there any other way to list out the no of user in an group from EPI Server?