• Login
  • Register

DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Searching for users

You are not authorized to post a reply.
Sort:


Basic Member


Posts:38
Basic Member

    In previous DNN versions (pre DNN9) we had a filter that allowed us to filter users based on different options (name, email, profile property, ...). On DNN 9 this is all gone and I can't seem to find a way to find users based on any profile property.

    Questions:

    - is there a way to specify which fields will DNN use for the search filter?

    - if not, what is it currently using for filtering?

    Vicenç Masanas
    Disgrafic ITec SL Banyoles - Spain


    Basic Member


    Posts:38
    Basic Member

      I think I found the answer myself.
      1. No, the list of searched fields is fixed on stored proc Personabar_GetUsersBySearchTerm

      2. The current filter search includes fields:
      UserName, DisplayName, Email, FirstName, LastName

      So if you need to add more options to the search you'll need to hack this stored proc.
      Vicenç Masanas
      Disgrafic ITec SL Banyoles - Spain


      Veteran Member


      Posts:338
      Veteran Member

        Posted By Vicenç Masanas on 16 Jul 2019 03:06 AM
        I think I found the answer myself.
        1. No, the list of searched fields is fixed on stored proc Personabar_GetUsersBySearchTerm

        2. The current filter search includes fields:
        UserName, DisplayName, Email, FirstName, LastName

        So if you need to add more options to the search you'll need to hack this stored proc.

        Or, "fix" it with a pull request? :) 

        Will Strohl

        Upendo Ventures DNN experts since 2003
        Official provider of the DNN-based E-Commerce w/ Hotcakes Commerce Cloud and SLA support


        Basic Member


        Posts:38
        Basic Member

          Will, not sure myself how to "fix" this.

          Do you think this should be an option somewhere? or we just can make the system search for every profile property?
          Vicenç Masanas
          Disgrafic ITec SL Banyoles - Spain


          Veteran Member


          Posts:338
          Veteran Member

            I think long-term, this use case could be much more common. Adding an advanced search option to the core seems to be a good idea.  :)

            Will Strohl

            Upendo Ventures DNN experts since 2003
            Official provider of the DNN-based E-Commerce w/ Hotcakes Commerce Cloud and SLA support


            Veteran Member


            Posts:335
            Veteran Member

              Vicenç,
              please be aware that there are different requirements per use case. I optimized the current stored procedure for speed, in order to support type suggest - even on sites with millions of registered users. Extending this to search user profile as well would slow down results and i.e. affect the current search.
              Of course, the sproc could be enhanced with an additional param "searchColumns", but IMO this shouldn't be used for type suggest.
              I would need a proper use case description to extend the sproc and maybe you can enhance the users PB extension to support it appropriately :)
              You are not authorized to post a reply.

              These Forums are dedicated to discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
              2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              4. No Flaming or Trolling.
              5. No Profanity, Racism, or Prejudice.
              6. Site Moderators have the final word on approving / removing a thread or post or comment.
              7. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved