CodePlexProject Hosting for Open Source Software
I have the name of a user group.
If I whant to get all users in this group, is there a funtion for that?
If you mean C1 Console users/groups this should do it:
using (var dataConnection = new DataConnection())
var users = from userGroup in dataConnection.Get<IUserGroup>()
join relation in dataConnection.Get<IUserUserGroupRelation>()
on userGroup.Id equals relation.UserGroupId
join user in dataConnection.Get<IUser>()
on relation.UserId equals user.Id
where userGroup.Name == "Administrator" // name here
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.