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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Fake the connected user (for the log)
Pages: [1]

Author Topic: Fake the connected user (for the log)  (Read 1285 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Fake the connected user (for the log)
December 18, 2009, 12:54:07 am
Hi,

I want to update contacts using the API. On the change log of the contacts, I have the connected user that runs the script, I'd liketo be able to set it to someone different.

Is is easy to switch the active user ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Fake the connected user (for the log)
December 27, 2009, 12:56:35 pm
I do not know if you can do that, but I think you may be able to add the user id to the API call, and thus adjust it that way. Let us know which API function you are using and perhaps we can confirm if this is possible.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Fake the connected user (for the log)

This forum was archived on 2017-11-26.