Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Echilon 29 posts 49 karma points
    Sep 14, 2010 @ 13:00
    Echilon
    0

    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?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 14, 2010 @ 13:13
    Dirk De Grave
    0

    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

  • Richard Soeteman 4036 posts 12864 karma points MVP
    Sep 14, 2010 @ 15:42
    Richard Soeteman
    0

    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

  • Echilon 29 posts 49 karma points
    Sep 14, 2010 @ 15:53
    Echilon
    0

    Thanks for the replies. The MemberExport package looks interesting.

  • Echilon 29 posts 49 karma points
    Sep 21, 2010 @ 13:47
    Echilon
    0

    The Member API was the best option I think.

  • aaeda 117 posts 150 karma points
    Mar 05, 2012 @ 15:41
    aaeda
    0

    Hi

    I wanted to get the list of members filtered by their date of birth. The members are classified by groups. 

     

    Thanks

     

Please Sign in or register to post replies

Write your reply to:

Draft