CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Where does CIVICRM store the CMS UserID Relationship to Contact_ID?
Pages: [1]

Author Topic: Where does CIVICRM store the CMS UserID Relationship to Contact_ID?  (Read 757 times)

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
Where does CIVICRM store the CMS UserID Relationship to Contact_ID?
January 09, 2013, 02:08:26 pm
For Background Info See http://forum.civicrm.org/index.php/topic,27302.0.html

My specific question is what table does CIVICRM store the joomla userid when it makes the linkage between an authenticated user and a civicrm contact ID based on Email.

I can go forward with my hook or custom .php landing page once i know this information.

Best regards,

David

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Where does CIVICRM store the CMS UserID Relationship to Contact_ID?
January 09, 2013, 02:22:41 pm

civicrm_uf_match

i've not read the details of your stuff closely enough, but in general swapping the userID in the tables is not recommended (IMO). CiviCRM does a lot of caching and does not invalidate the cache (since it does no expect the userID to change underneath it)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
Re: Where does CIVICRM store the CMS UserID Relationship to Contact_ID?
January 09, 2013, 03:07:23 pm
Perfect, one of the few tables I didn't click on LOL, thank you very much, are there any other ramifications of changing this value that anyone can come up with to discredit this solution, I honestly don't know so I genuinely am looking for feedback, I also posted in the feature request of some sort of reasonable faccimilee for this type of functionality.

Simply changing the ID seems to be the far easier solution in terms of cost (coding time) to deploy a solution and I'm already behind the deadline so I'm not really enthused about reading a mountain of API docs and implimenting a really complex solution.  Is there an API Call or way to expire the cache programatically?

Thank you for bringing up the cache issue, is that a DB Cache or cookie or how does that store?

Thanks!

David

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
Re: Where does CIVICRM store the CMS UserID Relationship to Contact_ID?
January 09, 2013, 03:13:31 pm

Perfect, one of the few tables I didn't click on LOL, thank you very much, are there any other ramifications of changing this value that anyone can come up with to discredit this solution, I honestly don't know so I genuinely am looking for feedback, I also posted in the feature request of some sort of reasonable faccimilee for this type of functionality.

Simply changing the ID seems to be the far easier solution in terms of cost (coding time) to deploy a solution and I'm already behind the deadline so I'm not really enthused about reading a mountain of API docs and implimenting a really complex solution. 

Thank you for bringing up the cache issue, you are absolutely right, simply changing the FKey of the civicrm Contact ID does and refreshing the Edit CIVICRM Profile page does not have the desire results, CiviCRM 'remembers' the old id via the cache -- is that a DB Cache or cookie or how does that store?

Is there an API Call or way to expire or reload the cache programatically?  Obviously logging completely out of my CMS and logging back in has the desired effect, and I am actually prepared to accept that as a fact of life (I can sell it as switching members requires you to "validate" your password LOL) but obviously making the switch transparent to the user is vastly the preferred solution.

Thanks!

David
« Last Edit: January 09, 2013, 03:15:46 pm by shinzan »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Where does CIVICRM store the CMS UserID Relationship to Contact_ID?

This forum was archived on 2017-11-26.