GetMemberByName - how to interpret the new implementation
Hi
I'm trying to get all members from a given group with this
foreach (string name in System.Web.Security.Roles.GetUsersInRole(role))
..
How am I then supposed to get the Umbraco Member since GetMemberByName is marked obsolete and the FindUsersByName gives me a MembershipUser. I need to properties on the Umbraco Member.
public static Member[] GetMemberByName(string usernameToMatch, bool matchByNameInsteadOfLogin)
I have seen implementations where are Members are traversed one by one and the checked against the name. But I don't suppose that it's the way to do it.
GetMemberByName - how to interpret the new implementation
Hi
I'm trying to get all members from a given group with this
How am I then supposed to get the Umbraco Member since GetMemberByName is marked obsolete and the FindUsersByName gives me a MembershipUser. I need to properties on the Umbraco Member.
I have seen implementations where are Members are traversed one by one and the checked against the name. But I don't suppose that it's the way to do it.
/Paul S
Hi Paul
Maybe this post conatins the solution to your problem?
http://our.umbraco.org/forum/developers/api-questions/2930-Getting-member-name
/Jan
Hi again
I think you might also could get some pointers from this.
Pay attetion to the comments added by Niels and Slace. Especially the latter since he pointed out some performance issues to be aware of.
/Jan
is working on a reply...