title: Sitecore Custom User Profile - where is it stored how can it be queried
body: <p>I have created a custom User profile template and object in the core database in Sitecore (as per the Security API Cookbook).</p>
  
  <p>I can select this programmatically (as per the Security API Cookbook) so that my extranet users have an extended profile, that covers all the usual suspects (Address, phone, email format etc.)</p>
  
  <p>However, where is this data stored? And how do I access it if I want to query the database to return a subset of users based on this profile data.</p>
  
  <p>A typical requirement for an extranet member system is to extract a list of users to contact either in an email or a phone type campaign. Can this be done with the Sitecore membership system?</p>
  
  <p><strong>UPDATE></strong>
  I'm going to take a guess and say the profile data is stored in aspnet_Profile.PropertyValuesBinary .. which would make it nigh on impossible to query and not suited to my purpose. That is unfortunate. So to extend my question, if that is the case, is it possible to get Sitecore to store those values in the text field so they are searchable?</p>