0

Is it possible to retrieve Drupal uid from CiviCRM Contact id? Can any one please guide me?

OR

Is it possible to get the Drupal user detail associated to a payment contribution?

  • another way is via eg Views and adding a block - it depends what you are trying to do and that is not clear from your question – petednz - fuzion Dec 20 '18 at 19:05
1

As others have noted it's not clear what you're asking but based on your wording I'm going to assume you mean via code. You can use the api explorer at https://mysite.org/civicrm/api (replace "mysite" with your actual site) to explore what's available and give you some sample code. Here's how to get the drupal uid given the civi contact id.

enter image description here

  • I was unable to select "CMS User".CiviCRM 5.7.0, Drupal 7 – gshilin Jan 3 at 9:32
0

Yes,

On the contact summary page there is a Contact ID/User ID field - the second number is the drupal uid - and links through to the user record.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.