I'm using custom properties for my members, and I want to list all members where property "myproperty" is a specific value (an ID in this case). Is there a way to do this short of looping through all members and checking the property?
- using the membership provider api (altho may need to revert to the umbraco member api once you've got the results received from the membership api call)
- perform a db query directly (may need some db structure knowledge, but should be fairly simple to implement
If you want to filter more than 500 records the DB option is the best choise. otherwise it would not perform. If you are using this filter to export the members you might want to checkout my MemberExport package.
Filtering members by the value of a property
I'm using custom properties for my members, and I want to list all members where property "myproperty" is a specific value (an ID in this case). Is there a way to do this short of looping through all members and checking the property?
I think there's multiple options to do so:
- using the umbraco member api: http://umbraco.org/apiDocs/html/N_umbraco_cms_businesslogic_member.htm (not recommended tho for a large member base)
- using the membership provider api (altho may need to revert to the umbraco member api once you've got the results received from the membership api call)
- perform a db query directly (may need some db structure knowledge, but should be fairly simple to implement
Hope this helps.
Regards,
/Dirk
If you want to filter more than 500 records the DB option is the best choise. otherwise it would not perform. If you are using this filter to export the members you might want to checkout my MemberExport package.
Cheers,
Richard
Thanks for the replies. The MemberExport package looks interesting.
The Member API was the best option I think.
Hi
I wanted to get the list of members filtered by their date of birth. The members are classified by groups.
Thanks
is working on a reply...